Quantcast
Channel: SCN : All Content - SAP Business Warehouse
Viewing all articles
Browse latest Browse all 5981

Rejection status population in SD item datasource - code logic required

$
0
0

Dear All

 

I have a scenario for which your help required.

 

this is from sales order (header/item) datasources 2lis_11_vahdr & 2lis_11_Vaitm datasources.

 

I have a requirement as below

 

  - to populate

     a.  the requested delivery date from the sales order to Act GI date field if the whole order is canceled (goods movement status = BLANK)

     b.  if partial cancelations or few items are only getting canceled, leave the ACT GI date as it is (goods movement status A or B or C).

 

I have a combined DSO has order/delivery/billing (like VBFA table),

 

Combined DSO A has

     Sales DSO - B (Contains Header and item data)

     Delivery DSO -  C (Contains Header and item data)

     Billing DSO - D (Contains Header and item data)

 

I plan to write a self loop to DSO A - DSO A to populate the above logic

 

there are two logic can be implemented here

 

1. if the whole order is canceled, then in document header status tab - we have reason for rejection "Everything canceled" will be updated but it will not come with 2lis_11_vahdr. we need to implement 2lis_11_vasth datasource and then look up the information during data load

 

2. we need to take the order no and item ( during the self loop above) and then need to check one by one if item level reason for rejection updated or not. then if all items are canceled then populate req delivery date

     issue 1 - using semantic key we can sequence all the items of an order to come in single data package but how to identify the last item of an order, an order can contain N number of items?

     issue 2 - one time i can do a full load and check all items of an order canceled or not. how this code will work during the delta load (if an item added newly to an existing order).

 

Pleae advise how to solve this issue?


Viewing all articles
Browse latest Browse all 5981

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>