Hi,
Its a postal scenario.
Close Event:
I have created few articles(through object event keeping status as close) and a bag(through aggregation event keeping articles as child epcs and status as close) with different epc ids.Since, tracking ids are internally created through conversion logic from the epcs , so tracking ids are completely different for all of the articles as well as bag.
Issue:
When I try to do a dispatch event with bag(another object event), as per the requirement, the status of articles (child epcs) should automatically get changed as per the bag status i.e dispatch. But In this case, only bag status is changing to dispatch where as the child articles are still remain in close status.
To overcome this situation, I have assigned an extra tracking id to the bag as well as the child epcs through the BADI BEFORE_EH_POST.
Now i am able to view two entries in the table /saptrx/eh_trxid for bag as well as for articles in which extra tracking id is same for bag as well as articles.
Now I want to pass the extra tracking id in dispatch event so that status of all the articles and the bag will be updated to dispatch.
Can someone kindly suggest, where or how i can pass this extra tracking id instead of epcs so that it will update bag as well as all the articles?
Also trackref structure is showing empty during passing of data. Please suggest , what can be done in this case.