on 07-10-2008 8:15 AM
Hi all ,
I want to do report for upload contract using BAPI
'BAPI_CONTRACT_CREATEFROMDATA'
here we have added zfields to Item level (VBAP) table.
so how to update values to this z fields through above BAPI
How to do enhancement for that BAPI??
How can this be done ?? Is there a user-exit or some alternative method ??
Thanks in Advance.
Edited by: Darshana Dange on Jul 10, 2008 9:35 AM
Hi,
You can use this EXTENSIONIN table in the tables parameter of the BAPI for passing the custom fields to the BAPI. That will help you to post the custom field values into the contract.
Thanks,
Mahesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Darshana,
Based on what we have done on a couple of occasions, I suspect that saving the Z field values to VBAP should have appropriate statements in a relevant order processing user exit.
When a sales order is created either manually or via a BAPI or call transaction, these exits are executed in the same way. And the Z field data can be passed to the standard BAPI using the table 'EXTENSIONIN'.
So summarize
1. Use EXTENSIONIN to pass the Z field data to BAPI
2. Based on the length of the fields, extract this data from EXTENSIONIN in user exits and copy to the respective fields. (one of the document save prepare / document save exits can be used)
Regards,
KC
PS: Some investigation may have to be done to see whether EXTENSIONIN is available in user exits during runtime; if not other options like memory ID have to be explored.
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 | |
14 | |
10 | |
5 | |
4 | |
3 | |
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.