cancel
Showing results for 
Search instead for 
Did you mean: 

Delivery split based on payment terms in Sales Orders

former_member820232
Discoverer
0 Kudos
711

Hello colleagues, I had a case where 3 sales orders with different payment terms were assigned in ONE delivery by mistake and system automatically has generated 3 different invoices with the same weight(duplicated).

Is there any way that SAP automatically differentiate sales orders with different payment terms and create automatically separate deliveries?

Accepted Solutions (1)

Accepted Solutions (1)

S0022029617
Active Participant
0 Kudos

Split on the basis of Payment Terms occur at the Invoice Level in standard. You may need to go for a development for your requirement for separate Deliveries.

vamsilakshman_pendurti
Active Participant
0 Kudos

Hi Sinha,

I am also having the same issue, if I have multiple sales orders with different Payment terms/Pricing Groups then it should create multiple delivery documents by using VL10C(Background).

Is there any way to handle this scenario, any Routine/Exit available for the same to handle this programmatically...

Thanks,

Lakshman.

vamsilakshman_pendurti
Active Participant
0 Kudos

Hi Sinha,

I found the Routine( RV50C900 ) and Program we need to choose for this include is ( SAPFV50C ).

There I have implemented Implicit enhancement...

IF cvbkd-vbeln IS NOT INITIAL .
DATA : l_low1 LIKE tvarvc-low VALUE IS INITIAL ,
it_vbkd like cvbkd[] ,
wa_vbkd LIKE cvbkd .
it_vbkd[] = CORRESPONDING #( cvbkd[] ) .

SELECT SINGLE low " TO CHECK ENTRIE IN TABLE TVARVC
FROM tvarvc
INTO (l_low1)
WHERE name = 'ZRV50C900_CVBKD_VSTEL'
AND low = likp-vstel.
DELETE it_vbkd[] WHERE vbeln = cvbkd-vbeln .
IF sy-subrc = 0 .
CLEAR wa_vbkd .
READ TABLE it_vbkd[] INTO wa_vbkd WITH key konda = cvbkd-konda .
IF sy-subrc <> 0.
CONCATENATE likp-zukrl cvbkd-konda INTO likp-zukrl SEPARATED BY '-'. " COMBINE Combination criteria for delivery & Pricing Group.
REFRESH it_vbkd[].
ELSEIF sy-subrc = 0 and wa_vbkd-zterm <> cvbkd-zterm .
CONCATENATE likp-zukrl cvbkd-zterm INTO likp-zukrl SEPARATED BY '-'. " COMBINE Combination criteria for delivery & Pament Term.
REFRESH it_vbkd[].
ENDIF.
ENDIF.
ENDIF.

Answers (0)