07-14-2016 9:59 AM
Dear All,
I got Cost Center wise Data from KSB1 using following code,
SUBMIT RKAEP000 WITH SELECTION-TABLE LT_SELSCREEN WITH P_TCODE = 'KSB1' "USING SELECTION-SCREEN '0100'
WITH KOSTL IN S_KOSTL
WITH budat in S_BUDAT
AND RETURN .
But problem is, When i run my report Without execute KSB1 , it is giving me dump -- GETWA_NOT_ASSIGNED.
If i execute KSB1 after that i execute my report , it is run successfully.
My question is , Can i Get KSB1 data using SUBMIT systax , but without execute KSB1 report ?
Regards,
Pratiksha
07-14-2016 12:21 PM
PARAMETERS P_TCODE TYPE SY-TCODE DEFAULT 'KSB1' NO-DISPLAY.
DATA : REPNAME TYPE TSTC-PGMNA VALUE 'RKAEP000'.
PARAMETERS:P_KOKRS TYPE TKA01-KOKRS DEFAULT '1000' OBLIGATORY.
SELECT-OPTIONS:S_KOSTL FOR CSKS-KOSTL NO INTERVALS,
S_KSTAR for CSKB-KSTAR NO INTERVALS,
S_BUDAT FOR COBK-BUDAT NO-EXTENSION OBLIGATORY .
SUBMIT (REPNAME) WITH P_KOKRS EQ P_KOKRS
WITH P_TCODE EQ P_TCODE
WITH KOSTL IN S_KOSTL
WITH KSTAR IN S_KSTAR
WITH R_BUDAT IN S_BUDAT
USING SELECTION-SCREEN 100
AND RETURN.
gt_covp_ext is final internal table used in KSB1, <GT_POS_DATA> is the FS Table, check LKAEPFLI include
Try above Code.
Sinagam.
07-15-2016 5:25 AM