Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

call screen method that will dynamically jump to general ledger

durgaprasad_sharma2
Participant
0 Likes
727

   hello gurus ,

my query is i have created a program that displays general ledger list it displays the output my query is " as soon as i click the company code i should jump to FB02 (change document initial screen) to chechk wheather the given informartion of document is corrent or not based on its general ledger code....

Please help me for the same...

   hello gurus ,

my query is i have created a program that displays general ledger list it displays the output my query is " as soon as i click the company code i should jump to FB02 (change document initial screen) to chechk wheather the given informartion of document is corrent or not based on its general ledger code....

Please help me for the same...

2 REPLIES 2
Read only

Former Member
0 Likes
685

Hi,

  • In fieldcatalog, define the company code as hotspot.
  • When you click the company code , function code  '&IC!' will be captured.
  • Define a user command as shown below

*--- ALV List Display

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

       EXPORTING

            I_CALLBACK_PROGRAM                  = SY-REPID

            I_CALLBACK_USER_COMMAND    = 'USERCMD'

            IT_FIELDCAT                                     = GT_FIELDCAT

  • Create a subroutine in the user command name

FORM USERCMD USING   R_UCOMM       LIKE   SY-UCOMM

                                              RS_SELFIELD TYPE   SLIS_SELFIELD.

  CASE SY-UCOMM.

    WHEN '&IC1'.

*Read the particular line and pass the FB02 input document number using SET parameter ID.

          SET PARAMETER ID (Check from Dataelement) FIELD RS_SELFIELD-VALUE.

          CALL TRANSACTION 'FB02' AND SKIP FIRST SCREEN.

ENDCASE.

ENDOFRM.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
685

Either thru management of the ok_code for pick (default '&IC1') or hanling event double-click or hotspot_click (depend if you use an old REUSE FM or a more current ALV class) get index to read current record and call the transaction using parameter id.

Regards,

Raymond