‎2008 Feb 20 5:54 AM
Hi All,
I want to update the short text for CONTRACTS in table EKPO from filed CDPOS-VALUE_NEW
for this i was using function module BAPI_PO_CHANGE
This Bapi is is succesfully updating the PO it is not updating the contracts....
Please help me with the BAPI to update text in contracts....
Please its very urgent
Thanx in advance,
Amruta.
‎2008 Feb 20 5:57 AM
Hi,
This might be the BAPI u r looking for BAPI_AGREEMENT_PROXY_UPLOAD
Reward if useful...
Thanks
Sunil Kumar Mutyala
‎2008 Feb 20 5:58 AM
i got ur point
Pass values to the field and ' X ' to the field x
that means
For EX : plant = gv_plant
plantX = 'X'
like that
similar to structures also
if u did'nt get post ur code
Regards,
Ajay
‎2008 Feb 20 6:05 AM
Hi Ajay,
I have done the same .....
REPORT ZTEST1234 .
data : wa_ekpo-ebelp type ekpo-ebelp value '00010'.
parameters :ebeln type ekpo-ebeln.
data : it_poitem type STANDARD TABLE OF BAPIMEPOITEM with HEADER LINE .
data : it_poitem1 type STANDARD TABLE OF BAPIMEPOITEMX WITH HEADER LINE.
data : it_return type STANDARD TABLE OF bapiret2.
it_poitem-PO_ITEM = wa_ekpo-ebelp.
it_poitem-SHORT_TEXT = 'mod'.
APPEND it_poitem.
it_poitem1-PO_ITEM = wa_ekpo-ebelp.
it_poitem1-SHORT_TEXT = 'X'.
APPEND it_poitem1.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = ebeln
POHEADER =
POHEADERX =
POADDRVENDOR =
TESTRUN =
MEMORY_UNCOMPLETE =
MEMORY_COMPLETE =
POEXPIMPHEADER =
POEXPIMPHEADERX =
VERSIONS =
NO_MESSAGING =
NO_MESSAGE_REQ =
NO_AUTHORITY =
NO_PRICE_FROM_PO =
IMPORTING
EXPHEADER =
EXPPOEXPIMPHEADER =
TABLES
RETURN = it_return
POITEM = it_poitem
POITEMX = it_poitem1
POADDRDELIVERY =
POSCHEDULE =
POSCHEDULEX =
POACCOUNT =
POACCOUNTPROFITSEGMENT =
POACCOUNTX =
POCONDHEADER =
POCONDHEADERX =
POCOND =
POCONDX =
POLIMITS =
POCONTRACTLIMITS =
POSERVICES =
POSRVACCESSVALUES =
POSERVICESTEXT =
EXTENSIONIN =
EXTENSIONOUT =
POEXPIMPITEM =
POEXPIMPITEMX =
POTEXTHEADER =
POTEXTITEM =
ALLVERSIONS =
POPARTNER =
.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ' '
IMPORTING
RETURN =..
This is my code just for updating the text but now the problemis this works with
When ebeln = 45000000017
whose bstyp = F ie PO
but when i do the same for Ebeln = 45000000000
whose bstyp = K ie contracts
it gives me error message that this BAPI cannot be executed for Contracts...
So please help me with the Bapi to change Contracts.
Thanx,
Amruta
‎2008 Feb 20 6:15 AM