cancel
Showing results for 
Search instead for 
Did you mean: 

NAST read from workarea or ???

mark_krhenbhl
Member
0 Kudos

Hi experts

in a Smartform-printreport (like RLE_DELNOTE) I have to check if any KSCHL (ex. ZLMA or ZLMW) is also in the NAST.

this is no problem using:

DATA: lt_nast TYPE TABLE OF nast.

DATA: ls_nast LIKE LINE OF lt_nast.

IF nast-kschl EQ 'ZLAK'.

SELECT *

FROM nast

INTO CORRESPONDING FIELDS OF TABLE lt_nast

WHERE kappl EQ nast-kappl

AND objky EQ nast-objky

AND ( kschl EQ 'ZLMA' OR kschl EQ 'ZLMW' ).

ENDIF.

BUT

on creaton of the delivery-note a output type (ZLAK) is generated with NAST-VSZTP 4 (Send immediately).

on this time the NAST isn't already committed and the abap-coding fails

where can I get the NAST ?

regards

Mark

Edited by: Mark Krähenbühl on Jun 14, 2010 2:20 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

vikas2
Active Participant
0 Kudos

Hello Mark,

Is there any reason why the timing in NAST-VSZTP has to be sent immediately (4 ) ? Is it possible to change the condition records for the output type so that the timing is changed to be processed by background job ( RSNAST00 for V2 and the o/p type(s) ) . I had a similar situation and as the data is not committed in NAST , I tested with changed timings and advised the functional team to change timing for the o/p type config.

Thanks

Vikas