Application Development 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: 

Get Data of KSB1 but without execute ksb1

Former Member
0 Kudos

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

2 REPLIES 2

0 Kudos

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 (REPNAMEWITH 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.

Former Member
0 Kudos

Hi Venkata,

               Issue Solved.

               Thank you Very Much.

Thanks,

Pratiksha