cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot submit RSNAST00

Former Member
0 Kudos

I am trying to process each entry in NAST individualy by using RSNAST00 in a select-loop and giving a different Suffix to each one (In order to have a better connection between NAST and TSP01).

When I run RSNAST00 through se38 with the parameters that I need, I have no porblem.

But when I run the following through my program, with the same parameters, ZSSA0001 (the print program) gets terminated because it can't find function CUD0_GET_CONFIGURATION.

Here's the RSNAST00 related portion of my code:

SELECT OBJKY

MANUE

FROM NAST

INTO CORRESPONDING FIELDS OF WA_SPOOL

WHERE KSCHL = 'BA00'

AND KAPPL = 'V1'

AND ERDAT = SY-DATUM

AND VSTAT = '0'.

SUBMIT RSNAST00

WITH S_OBJKY-LOW = WA_SPOOL-OBJKY

WITH P_SUFF2 = WA_SPOOL-OBJKY

WITH S_NACHA-LOW = '1'

AND RETURN.

SELECT SINGLE RQIDENT

FROM TSP01

INTO WA_SPOOL-RQIDENT

WHERE RQ2NAME = WA_SPOOL-OBJKY.

APPEND WA_SPOOL TO GT_SPOOL.

ENDSELECT.

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

You should not submit in the SELECT ... ENDSELECT

Fill the Select-options from the SELECT and than use in submitting the report.

Regards,

Naimesh Patel

Former Member
0 Kudos

But how would I make sure that p_suff2 is unique for each one? I would still need a loop. Are you suggesting that using LOOP...ENDLOOP will work in this case?

Answers (1)

Answers (1)

Former Member
0 Kudos

could't just input a value into a select option. needed sign and option. Also needed to loop instead of select loop

Former Member
0 Kudos

Hi,

You try to submit the program but try to populate the internal table with structure rspar & use the statement "WITH SELECTION-TABLE it_rspar" & see.