Skip to Content
avatar image
Former Member

Cannot submit RSNAST00

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 17, 2008 at 06:59 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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?

  • avatar image
    Former Member
    Sep 17, 2008 at 09:44 PM

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.