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: 

Submit 'RKAEP000' WITH SCRNAME

Hi Experts,

I call the program of transaction 'KSB1' with program name RKAEP000.

I need the field CPUDT, so my idea was to create a custom selection screen and submit the program with the selection screen.

In ksb1 with my selection screen the field for the CPUDT was SO_C03 so I came up with this solution:

SUBMIT 'RKAEP000'       WITH p_kokrs EQ p_kokrs
                        WITH p_tcode EQ p_tcode
                        WITH kostl IN s_kostl
                        WITH kstar IN s_kstar
                        WITH SO_C03 IN s_cpudt
                        WITH p_disvar EQ p_layout
                        WITH R_BUDAT in s_budat
                        WITH SCRNAME EQ 'TESTSSCREEN'
                        USING SELECTION-SCREEN 100
                        EXPORTING LIST
                        TO MEMORY AND RETURN.

Unfortunately the selection of CPUDT doesnt work. Am I missing something or doesnt it work this way?

Help is appreciated.

Regards

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

It worked for me by assigning CPUDT to my 4th field, with PAR_C04 = 'COVP-CPUDT' (3rd field was already used by another field):

TABLES cobk.
SELECT-OPTIONS s_cpudt FOR cobk-cpudt NO-DISPLAY DEFAULT sy-datum.
SUBMIT  rkaep000        WITH p_tcode = 'KSB1'
                        WITH kstar   = 'MCA' "my chart of accounts
                        WITH par_c04 = 'COVP-CPUDT'
                        WITH so_c04 IN s_cpudt
                        VIA SELECTION-SCREEN
                        EXPORTING LIST
                        TO MEMORY AND RETURN.
6 REPLIES 6

FredericGirod
Active Contributor
0 Kudos

You submit a transaction ?

0 Kudos

No sry, my fault, I copied it false

FredericGirod
Active Contributor
0 Kudos

With dynamic selection screen, it is not really easy to do a submit.

Did you try to do a record with SHDB and use a CALL TRANSACTION .... USING bdcdata ?

0 Kudos

My hope was that I can avoid doing a record

Sandra_Rossi
Active Contributor

It worked for me by assigning CPUDT to my 4th field, with PAR_C04 = 'COVP-CPUDT' (3rd field was already used by another field):

TABLES cobk.
SELECT-OPTIONS s_cpudt FOR cobk-cpudt NO-DISPLAY DEFAULT sy-datum.
SUBMIT  rkaep000        WITH p_tcode = 'KSB1'
                        WITH kstar   = 'MCA' "my chart of accounts
                        WITH par_c04 = 'COVP-CPUDT'
                        WITH so_c04 IN s_cpudt
                        VIA SELECTION-SCREEN
                        EXPORTING LIST
                        TO MEMORY AND RETURN.

Perfect, thank you!