cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancement for BAPI_CONTRACT_CREATEFROMDATA (It's Urgent)

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.