2016 Mar 23 9:53 AM
Hi All,
I need to create Shipment with reference to Sales order. So now the VT01N screen has Transport Planning point, Shipment type and selection variant(attached).
I need to add the extra fields : Forwarding agent , special processing indicator, sales order number, sales order item in VT01N screen.
Please let me know if there is a BADI or not with which can do this.
I searched in sdn and did not find much help. Please could someone help.
Thanks & Regards,
Jenny
2016 Mar 23 10:20 AM
I've checked the transaction and screen 1010 of module pool SAPMV56A is called. A quick scan of the PBO modules revealed some references to user exits, but since this is a dynpro, I don't think it is possible to add any fields at run-time.
So either a repair key and a modification of the standard screen, or put a custom screen in front with the fields you need. Either way, I guess you'd still have to find other exits to pass the data along to the actual creation process?
2016 Mar 23 10:20 AM
I've checked the transaction and screen 1010 of module pool SAPMV56A is called. A quick scan of the PBO modules revealed some references to user exits, but since this is a dynpro, I don't think it is possible to add any fields at run-time.
So either a repair key and a modification of the standard screen, or put a custom screen in front with the fields you need. Either way, I guess you'd still have to find other exits to pass the data along to the actual creation process?
2016 Mar 23 10:27 AM
Hi Patrick,
Thanks for your suggestions. Yes I am searching for any user-exit or BADI. Also I think I need to add the fields in the structure. So I am not sure whether I need to update table VTTK with sales order and item(the other fields already there in VTTK) or need to update another structure....It all depends on the user-exit or BADI.
Anybody please help.
Thanks & Regards,
Jenny
2016 Mar 23 10:46 AM
Come to think of it, if it is just adding a reference, and adding that, you can check out these notes:
Note 399075 - Layout of planning screen for the shipment
Note 400368 - Expand planning screen for shipment
Mind you, these fields will not be added on the first screen but on those that come after. But if it is adding a reference to another document, then it might suffice
2016 Mar 23 11:31 AM
Hi Patrick,
Thanks I had seen these notes. But was not sure whether its useful or not. Now I am thinking another scenario. After entering the sales order and item in initial screen in VT01N they are been populated in container id in next screen. So I think I can avoid adding new fields in any structure and take the fields from existing structure.
In this case if I need to add the fields Forwarding agent, Special processing indicator, Container id(need to change text to Sales order & Item) in initial screen in VT01N is there any user exit or BADI please.
Thanks & Regards,
Jenny
2016 Mar 23 11:51 AM
Like I said, there are no extension possibilities for the first screen through run-time coding..
2016 Mar 23 12:07 PM
Hi Patrick,
So I need to have an access key and add the required fields in the screen and then look up for the area where I need to populate those fields.
Thanks,
Jenny
2016 Mar 25 10:48 AM
Thàt, or creating a custom 'front' program (though that would imply a custom transaction). Add all the fields you want on the selection screen of your 'front' program and when executing, you pass them along to the standard transaction.
A bit like the decorator design pattern from OO programming
Downside is obviously the custom transaction, but the advantage would we you can do almost everything you want and you only need to pass along the data..
2016 Mar 29 9:42 AM
Hi Patrick,
Please can you provide more details.
Thanks & Regards,
Jenny
2016 Mar 29 12:26 PM
Thanks Patrick I created a Zprogram and copied the initial screen with the pf status and added my additional fields and passed the fields to VT01N.
Thanks all for your help.
2016 Mar 29 12:28 PM
2016 Mar 23 12:09 PM
Hi,
A shipment document is normally created with reference to a delivery document.
Sales Order -> Delivery -> Shipment -> Billing
Please confirm whether you need to create a shipment document from the sales order directly, without first creating a delivery.
You will need to copy data from the sales order to the shipment document at the header, item and schedule line levels. I do not know of copy controls for shipment documents.
With regards to adding fields in the create Shipment doc screen, please check for enhancement points in the Shipment document creation program.