Skip to Content
0

How to call LE_DSP_ALL_STEPS(fm) with "combine" parameter?

Feb 15, 2017 at 03:09 PM

59

avatar image

Hello,

I'd like to split some lips from a few delivers(in the same transport) and wrap it in new delivery, is it possible using LE_DSP_ALL_STEPS ?

I tried to do :

CALL FUNCTION 'LE_DSP_ALL_STEPS'
EXPORTING
if_combine = 'X'
IMPORTING
ef_subrc = ef_subrc
CHANGING
cs_split_wa = gs_split_wa

I filled cs_split_wa structure with data in the same way as it was done in implemented split feature of transaction vt02n , but when I was calling this fm, the subroutine "ccr_check_and_execute_shipment" module threw an exception in 212 line.

The problem is with CS_SPLIT_WA-RS-VBNUM, because I've 2 entries with the same dummy number ($3) and when the program perform instruction of read in loop of table VBNUM

READ TABLE wa-rs-trdas TRANSPORTING NO FIELDS WITH KEY
tknum = <ls_vbfa>-vbeln
vbeln = <ls_vbnum>-vbeln_new BINARY SEARCH.

the program get sy-subrc eqaul zero and insert entry with dummy number and tknum to CS_SPLIT_WA-RS-TRDAS, on the next iteration the perform is throwing exception.

image.png (13.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jelena Perfiljeva
Feb 15, 2017 at 07:24 PM
1

Function module LE_DSP_ALL_STEPS is not released and you should not be calling it with any parameters.

I'm sorry but it's very hard to understand what exactly you are trying to achieve. Not sure if it's a case of "lost in translation" but "deliver" is a verb (noun would be "delivery") and it's not clear what "transport" has to do with all of this. The whole post is just very confusing...

Delivery Split is a standard SAP functionality that has been discussed numerous times on SCN. Google -> delivery split site:sap.com

P.S. Standard SAP terminology with translation can be found in STERM transaction.

Share
10 |10000 characters needed characters left characters exceeded