10-18-2021 9:05 AM
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
10-18-2021 10:19 AM
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.
10-18-2021 9:15 AM
10-18-2021 9:17 AM
10-18-2021 9:35 AM
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 ?
10-18-2021 9:39 AM
10-18-2021 10:19 AM
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.
10-25-2021 7:22 AM