2016 Oct 06 6:19 AM
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...
2016 Oct 06 6:42 AM
Hi,
*--- ALV List Display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_USER_COMMAND = 'USERCMD'
IT_FIELDCAT = GT_FIELDCAT
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.
2016 Oct 06 7:17 AM