Quantcast
Channel: SCN : Discussion List - User Interface Development in ABAP
Viewing all 319 articles
Browse latest View live

cl_salv_table vs.top_of_list - unwanted splitter

$
0
0

Hi there,

 

I am trying to control the visibility of ALV top of page header.

 

Using set_top_of_list method of cl_salv_table class I've achieved this (which is ok):

 

[    HEADER   ]
---[splitter]--
[             ]
[     ALV     ]
[             ]

 

Now I need to add a button to ALV toolbar to be able to control whether the \[ HEADER \] part is visible.

I am able to hide the \[ HEADER \] part (by passing a parameter with INITIAL value to the set_top_of_list method).

 

The problem is the \[ splitter \]. It stays there and screen looks like this:

---[splitter]--
[             ]
[     ALV     ]
[             ]

I'd like it to look like this (remove the splitter somehow):

[             ]
[     ALV     ]
[             ]

 

How can I achieve this ? Maybe I need to get reference to a parent object and dig my way up to the splitter settings itself to be able to hide it (how). I wouldn't want to create another grid from scratch just to get rid of the splitter. Any clues ?

 

Thanks,

Bart


Spell check in ABAP Webdynpro

$
0
0

Hi,

 

Is it possible to check the spelling of text entered in ABAP webdynpro? 

 

Thanks

right click not functioning in SAPGUI

$
0
0

Right click does not pullup any dropdown in SAP. Has someone had a similar situation before. How to solve it

Any clarification will be appreciated.

SAP Inbound ALE - Not to update particular field for Message type HRMD_A

$
0
0

Hi Experts,

 

We have ALE Inbound running for years together, Due to recent change in our Inbound / receiver system. We have populated Time Administrator code in HR Infotype 0001 "Organizational Assignment" . This field value is blank in Send system (outbound).

 

So when ALE process as inbound, this field P0001-SACHZ turns blank again, HR has to update this manually. From design perspective would like to understand what is the  best procedure to do this, will work with ABAP team based on the inputs.

 

Thanks ~Priya

How to drop field in DEBMAS in segment E1KNVVM (Field name VSORT)

$
0
0


Hi Experts ,

 

I want to make one field not to update the value in customer sales area which is VSORT , while triggering inbound idoc ,

 

I created ZDEBMAS messgege type in that i deselected the field and i assinged thser ZDEBMAS in inbound partner profile , i triggered idoc but still it is population the value .

 

Can you pleae help me how to make this filed not to update.

 

Thanks & regards

Kiran.

Error: invalid XMLBLOB data

$
0
0

Hi Experts,

 

I have impelemented an interactive ALV Report.

  • When i click on the Append row button from the ALV toolbar immediately if i prees the Back button it is displaying the fallowing error

          Invalid GUI input data: invalid XMLBLOB data

 

            Message no. 00123

  • If i press the Insert row button everything is working fine but iam facing the problem with only Append row button

 

 

your inputs will be helpfull to me.

 

 

Regards.

How to display 10 default empty lines in OO ALV output Screen

$
0
0

Hi Experts,

I need to  display 10 default empty lines in OO ALV output Screen how can i achieve this please provide any suggetions or any usefull links

 

Regards.

Response on double click in table control (subscreen)

$
0
0

i know response on double click in normal screen table control... but i don't know in subscreen..

 

i have tab strip in normal screen. (screen no 1000).

In tab strip i have subscreen area.

i have table control in subscreen.(screen no 1001).

 

e.g i have EKKO details in table control.. when user double click the EBELN value i need to display the EKPO details in another screen or dialog box...


No Valid target content arear found

$
0
0


Hi ,

 

We are facing below error while creating Customer in MDG.

 

Error: No valid target content area found

 

Error Details :

Technical Exception: Technical Exception not available

Error Description:      No valid target content area found 


Steps:

logon to NWBC -> click on customer creation role-> in search Coustomer-> click on new organization

then error screen appears.

 

Can anyone help us in this regard?

   

NO_FIELDCATALOG_AVAILABLE

$
0
0

Hi,

I'm a new user of ABAP. I'm trying to define an ALV Grid using two functional module ( REUSE_ALV_FIELDCATALOG_MERGE and   REUSE_ALV_GRID_DISPLAY ) but the program dump and give this error: "No field catalog available".

This is my code:

 

REPORT  ztest_0003.

 

*&---------------------------------------------------------------------*

TABLES: zfi_employee1,

        zprenotazioni.

*&---------------------------------------------------------------------*

DATA: BEGIN OF ls_output,

      sct LIKE zprenotazioni-sct,

      wkr LIKE zprenotazioni-wkr,

      twkr LIKE zprenotazioni-twkr,

      zname LIKE zprenotazioni-zname,

      zsurname LIKE zprenotazioni-zsurname,

      mans LIKE zfi_employee1-mans,

      zpagamento LIKE zprenotazioni-zpagamento,

      zprice LIKE zprenotazioni-zprice,

END OF ls_output.

DATA ls_zprenotazioni TYPE zprenotazioni.

DATA lt_output LIKE ls_output OCCURS 0 WITH HEADER LINE.

DATA: va_num TYPE i.

TYPE-POOLS: slis.

DATA: g_repid LIKE sy-repid.

DATA: lt_fieldcat  TYPE slis_t_fieldcat_alv.

DATA : lt_fieldcat_layout TYPE slis_layout_alv.

 

*&---------------------------------------------------------------------*

SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.

SELECTION-SCREEN SKIP 1.

PARAMETERS: p_soc LIKE zfi_employee1-sct VISIBLE LENGTH 3,

            p_twkr LIKE zfi_employee1-twkr OBLIGATORY VISIBLE LENGTH 3.

SELECT-OPTIONS s_wkr FOR zfi_employee1-wkr VISIBLE LENGTH 4.

SELECTION-SCREEN SKIP 1.

SELECTION-SCREEN END OF BLOCK a1.

 

SELECTION-SCREEN BEGIN OF BLOCK a2 WITH FRAME TITLE text-002.

SELECTION-SCREEN SKIP 1.

PARAMETERS: p_rad1 RADIOBUTTON GROUP g DEFAULT 'X',

            p_rad2 RADIOBUTTON GROUP g,

            p_rad3 RADIOBUTTON GROUP g.

SELECTION-SCREEN SKIP 1.

PARAMETERS: p_zprice LIKE zprenotazioni-zprice." OBLIGATORY.

SELECTION-SCREEN SKIP 1.

SELECTION-SCREEN END OF BLOCK a2.

*&---------------------------------------------------------------------*

AT SELECTION-SCREEN.

  IF p_rad1 = 'X' OR p_rad2 = 'X'.

    IF p_zprice IS INITIAL.

      MESSAGE e000(su) WITH 'Inserire Importo!'.

    ENDIF.

  ENDIF.

*&---------------------------------------------------------------------*

 

  1. INITIALIZATION.

  REFRESH lt_output.

  CLEAR va_num.

 

*&---------------------------------------------------------------------*

 

START-OF-SELECTION.

 

  IF p_soc IS NOT INITIAL.

    SELECT     a~mans

               a~sct

               a~wkr

               a~twkr

               b~zname

               b~zsurname

               b~zpagamento

               b~zprice

      INTO CORRESPONDING FIELDS OF TABLE lt_output

      FROM zfi_employee1 AS a INNER JOIN zprenotazioni AS b

      ON a~sct = b~sct

      AND a~twkr = b~twkr

      AND a~wkr = b~wkr

      WHERE a~sct = p_soc AND a~twkr = p_twkr AND a~wkr IN s_wkr.

  ELSE.

    SELECT    a~mans

              a~sct

              a~wkr

              a~twkr

              b~zname

              b~zsurname

              b~zpagamento

              b~zprice

     INTO CORRESPONDING FIELDS OF TABLE lt_output

     FROM zfi_employee1 AS a INNER JOIN zprenotazioni AS b

     ON a~twkr = b~twkr

     AND a~wkr = b~wkr

     WHERE a~twkr = p_twkr AND a~wkr IN s_wkr.

  ENDIF.

 

  IF p_rad1 = 'X'.

    CLEAR: ls_output.

    LOOP AT lt_output INTO ls_output.

      IF ls_output-zprice < p_zprice.

        ls_output-zprice = ls_output-zprice * 11 / 10.

        MODIFY TABLE lt_output FROM ls_output.

        CLEAR ls_zprenotazioni.

        SELECT SINGLE * FROM zprenotazioni INTO ls_zprenotazioni

                        WHERE sct = ls_output-sct

                          AND wkr = ls_output-wkr

                         AND twkr = ls_output-twkr.

        IF sy-subrc = 0.

          MOVE ls_output-zprice TO ls_zprenotazioni-zprice.

          MODIFY zprenotazioni FROM ls_zprenotazioni.

          CLEAR: ls_output,

                 ls_zprenotazioni.

        ENDIF.

      ENDIF.

    ENDLOOP.

  ELSEIF p_rad2 = 'X'.

    CLEAR ls_output.

    LOOP AT lt_output INTO ls_output.

      IF ls_output-zprice > p_zprice.

        DELETE FROM zprenotazioni WHERE sct = ls_output-sct

                                    AND wkr = ls_output-wkr

                                   AND twkr = ls_output-twkr.

 

        DELETE TABLE lt_output FROM ls_output.

        CLEAR ls_output.

      ENDIF.

    ENDLOOP.

  ELSE.

  ENDIF.

 

  CLEAR va_num.

  DESCRIBE TABLE lt_output LINES va_num.

 

*&---------------------------------------------------------------------*

 

  g_repid = sy-repid.

 

  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

   i_program_name               = g_repid

   i_internal_tabname           = 'LT_OUTPUT'

   I_STRUCTURE_NAME             = 'LS_OUTPUT'

   i_client_never_display       = 'X'

   i_bypassing_buffer           = 'X'

CHANGING

    ct_fieldcat                  = lt_fieldcat

EXCEPTIONS

   inconsistent_interface       = 1

   program_error                = 2

   OTHERS                       = 3

          .

  IF sy-subrc <> 0.

    WRITE: /

    'Returncode',

    sy-subrc,

    'from FUNCTION REUSE_ALV_LIST_DISPLAY'.

  ENDIF.

 

 

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

   EXPORTING

     i_callback_program                = g_repid

     i_callback_pf_status_set          = 'SET_PF_STATUS'

     i_callback_user_command           = 'USER_COMMAND'

     i_callback_top_of_page            = 'TOP-OF-PAGE'

     i_structure_name                  = 'LS_OUTPUT'

     is_layout                         = lt_fieldcat_layout

     it_fieldcat                       = lt_fieldcat[]

 

    TABLES

      t_outtab                          = lt_output

   EXCEPTIONS

     program_error                     = 1

     OTHERS                            = 2.

  IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

  ENDIF.

 

Can anyone let me know what the issue is.

 

Thanks,

Andrea

ALV grid row selection event

$
0
0

Hi,

I have alv grid using cl_gui_alv_grid. I want to capture the row selection event and display the detail below the table.

how do I capture the row selection.? I want to display the details below as and when the row selection changed.

 

Regards

Panneer

Need business Object and Events for CJ30?

$
0
0

Hi Workflow Masters,

 

I need business object and Event for CJ30 Transaction.

 

I have checked SWELS and Event trace is switched on.

I have Ran the CJ30 transaction and the document is posted.

I have checked SWE2 tcode but I unable to find the events for CJ30 for perticular date.

Please find attached screen shot also.

Problem to color a column in ALV_GRID

$
0
0

Hi to all,

 

I'm trying to color a column in ALV_GRID everytime I take some error in the code.

This is my code:

 

DATA ls_output TYPE zls_output.
DATA lt_output TYPE STANDARD TABLE OF zls_output.

TYPE-POOLS: slis.
DATA g_repid LIKE sy-repid.
DATA lt_fieldcat  TYPE slis_t_fieldcat_alv.
DATA lt_fieldcat_layout TYPE slis_layout_alv.

 

    g_repid = sy-repid.

  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
   i_program_name               = g_repid
*   i_internal_tabname           = 'LT_OUTPUT'
   i_structure_name             = 'ZLS_OUTPUT'
   i_client_never_display       = 'X'
   i_inclname                   = g_repid
   i_bypassing_buffer           = 'X'
*     I_BYPASSING_ACTIVE         = 'X'
CHANGING
    ct_fieldcat                  = lt_fieldcat
EXCEPTIONS
   inconsistent_interface       = 1
   program_error                = 2
   OTHERS                       = 3.
  IF sy-subrc <> 0.
    WRITE: /
    'Returncode',
    sy-subrc,
    'from FUNCTION REUSE_ALV_LIST_DISPLAY'.
  ENDIF.

  CLEAR ls_output.
  LOOP AT lt_output INTO ls_output.
    CALL FUNCTION 'ZONVERTI'
      EXPORTING
        va_wkr       = ls_output-wkr
      IMPORTING
        va_wkroutput = ls_output-wkr.
    MODIFY lt_output FROM ls_output.
  ENDLOOP.


  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
     i_interface_check                 = 'X'
     i_callback_program                = g_repid
*     i_structure_name                  = 'ZLS_OUTPUT'
     is_layout                     = lt_fieldcat_layout
     it_fieldcat                  = lt_fieldcat[]
     i_grid_title                      = 'TEST: LISTA LAVORATORI'
*     IS_PRINT                          =
*     IT_FIELDCAT                       = '3'
    TABLES
      t_outtab                          = lt_output
   EXCEPTIONS
     program_error                     = 1
     OTHERS                            = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.



    LOOP AT lt_output INTO ls_output.
    CASE ls_output-wkr.
      WHEN ' '.
        lt_fieldcat-emphasize = 'C600'.
    ENDCASE.
    MODIFY lt_output FROM ls_output.
  ENDLOOP.

 

 

Thanks in advance.

Best regards,

Andrea

ABAP Development

$
0
0

Hi Experts,

 

Currently developing my ABAP skills,

 

I have a formula which contains brackets ((([SEL34])/1000)/([SEL27]+([SEL28]*6.0924)))

I would like to have code which checks the opening brackets and closing brackets.

 

it should if the opening and closing brackets does not match its should prompt and error message that opening and closing brackets are not equal or something.

 

at the moment I have already a loop which looks like this.

 

FORM GET_EXISTING_RECORDS.

 

   SELECT *

     FROM table_config

     INTO Table lt_table_config.

 

   SELECT *

       FROM Table_header

       INTO TABLE LT_table_header.

 

* First Check on Selection IDs between Header and Config Tables.


   LOOP AT LT_table_header.ASSIGNING <FS>. "INTO GWA_LT_table_header..

 

     ASSIGN COMPONENT 'xx100004' OF STRUCTURE <FS> TO <FS_1>.


     READ TABLE lt_table_configINTO GWA_table_configWITH KEY XX100004 =<FS_1>."GWA_Table_config-XX100004.

 

     IF SY-SUBRC <> 0.

       WRITE:   <FS_1>, 'HEADER ID not found in Config Table '.

     ENDIF.

   ENDLOOP.

ENDFORM.


here i would like to have a form that checks the brackets opened and closed in a formula

table_header contains all the formulas.



I hope to receive some advise.


Rabie Hamidi

Issue using UOM 'AU' with BAPI_CHARACT_CREATE

$
0
0

I'm attempting to use BAPI_CHARACT_CREATE to create characteristics and I'm encountering an issue when I try to use the 'AU' unit of measure (activity unit). When I provide AU to the bapi, I don't get an error, but the uom on the characteristic is blank. If I use other uom's (EA, etc), the characteristic properly displays the uom.

 

When entering characteristics via the front end (tcode: CT04), I'm able to use AU and the characteristic saves and stores the value correctly.

 

Is there something "special" about the AU unit of measure that prevents its' use with BAPI's? I've noticed that AU is not configured in the CUNI tcode like the others, but it obviously exists somewhere since it's available via the uom drop down lists.

 

Any and all suggestions are welcome.

 

Thanx in advance.

er


How to Connect SAP to fedEx using Webservices

$
0
0

Hello Experts,

 

I have a requirement to connect SAP to fedEX using webservices, can anybody help me with the step by step process.

 

Thanks in Advance.

 

Regards,

Divya.

Limit the number of rows in a table control to 6

$
0
0

Hi all,

 

I have an exceptional requirement.

I want to create a table control with only 6 rows.

There should not be more than 6 rows in the table control.

 

How can i create the table contol?

 

Thanks & Regards,

Nikhil

Through MRP One Single Collective PR for Multiple Material .

$
0
0

Dear Gurus,

 

I configures the Consumption Based Planning on the basis of Reorder point & Fixed quantity with MRP type :

VB.

 

 

After MRP Run in MD03,SAP will generate single PR for Single material.

 

Client requirement : Single Collective PR for Multiple items.

 

Is there any option to run the MRP for multiple material ?

 

How to generate  single collective PR with reference to Purchasing Group ?

 

 

As I am MM consultant , I want to know whether is this possible & how with ABAP programming.

 

 

Kindly do the needful.

 

 

Regards,

Abhijit

Enable/Disable radiobutton with condition

$
0
0


Hi all,

 

I have to set two radiobuttons (session and ctu) that are disabled/enabled by other two radiobutton (p_rad1 --> session and ctu are disable; p_rad2 --> session and ctu are enable).

In the window where I've to set these parameters if I change from radiobutton p_rad1 to p_rad2 and then i change from p_rad2 to p_rad1 my program dump.

This is my code:

 

   SELECTION-SCREEN BEGIN OF BLOCK one WITH FRAME TITLE text-000.
PARAMETERS: pa_file TYPE rlgrap-filename OBLIGATORY.
SELECTION-SCREEN END OF BLOCK one.

 

   SELECTION-SCREEN BEGIN OF BLOCK two WITH FRAME TITLE text-001.
PARAMETERS: p_rad1 RADIOBUTTON GROUP g DEFAULT 'X' USER-COMMAND BUT,
            p_rad2 RADIOBUTTON GROUP g.
SELECTION-SCREEN END OF BLOCK two.

 

   SELECTION-SCREEN BEGIN OF BLOCK three WITH FRAME TITLE text-004.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS session RADIOBUTTON GROUP ctu MODIF ID b1"create session
SELECTION-SCREEN COMMENT 3(20) text-s07 FOR FIELD session.
SELECTION-SCREEN POSITION 45.
PARAMETERS ctu RADIOBUTTON GROUP  ctu MODIF ID b2.     "call transaction
SELECTION-SCREEN COMMENT 48(20) text-s08 FOR FIELD ctu.
SELECTION-SCREEN END OF LINE.

 

 

AT SELECTION-SCREEN.

 

    IF pa_file IS INITIAL.
    MESSAGE e000(su) WITH text-001.
  ENDIF.

 

AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_file.

  CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
      def_filename     = '*'
      mode             = 'O'
      title            = text-002
    IMPORTING
      filename         = pa_file
    EXCEPTIONS
      inv_winsys       = 1
      no_batch         = 2
      selection_cancel = 3
      selection_error  = 4
      OTHERS           = 5.

 

AT SELECTION-SCREEN OUTPUT.

 

 

    LOOP AT SCREEN.         "PROVA 1
    IF p_rad1 = 'X'.
      IF screen-name = 'SESSION'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.
      IF screen-name = 'CTU'.
        screen-input = '0'.
        MODIFY SCREEN.
      ENDIF.
    ELSEIF p_rad2 = 'X'.
      IF screen-name = 'SESSION'.
        screen-input = '1'.
        MODIFY SCREEN.
      ENDIF.
      IF screen-name = 'CTU'.
        screen-input = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.

 

 

And another problem of my program is that before I can select the radiobutton I've to upload a file, I can't do it at last.

Thank you all.

 

Regards,

Andrea

how to program table control input lines

$
0
0

hi

 

im creating mpp . in table control I want to program input lines

 

ex

as shown below if I write material no I want to get further fields and if I click on material type, in new screen I want to get related matnr and details plz

guide me m new to abap

Viewing all 319 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>