on 10-14-2010 4:34 AM
Hi expert,
Sales order item's bill-to and payer will be same with header if you do not change it manually. now I want to modify some item's bill-to and payer which different from the header automatically. Is there any enhancement for this function?
Thanks and best regards
Lance
Hello,
The Z Table where the cross reference partner can be maintained seems like the solution that you might have to implement.
Regards
Edited by: SD.... on Oct 28, 2010 5:54 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lance,
You can do this kind of "item-level" partner determination based on a Z-table.
At SalesOrder creation you can modify XVBPA at USEREXIT_SAVE_DOCUMENT_PREPARE.
For mass SalesOrder modification you can use BAPI_SALESORDER_CHANGE.
BR,
Barna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lance,
You can populate the XVBPA structure with function module "VIEW_XVBPA_FILL".
You have to pass the following values to the FM:
COMWA-KUNNR <- the changed partner code
COMWA-PARVW <- parter role
COMWA-VBELN, COMWA-POSNR <- Salesorder and item: just fill it with VBAK-VBELN,VBAP-POSNR
You'll get the result in parameter XVBPA, which can be used for append the internal
table XVBPA in the userexit.
BR,
Barna
HI
Please have your ABAPer help to get the appropriate BAPI in SAP standard which can change the Sales order data i.e Partne data as you desired.
Regards,
Ram,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.