Posted: Wed Oct 10, 2007 11:19 pm Post subject: Change PO conditions
See notes:
Note 439110 - Enjoy PO BAPI: Conditions Note 428621 - EnjoySAP purchase order BAPIs - price det. & cond. change
Which functions are available and how to fill the new structures/fields
1. Two new condition structures were introduced, POCONDHEADER and POCONDHEADERX. These can be used to change header conditions.
When you use this function, you should fill the following fields:
COND_TYPE (condition type, for example, FRA1)
COND_VALUE (condition value, for example, 200.00)
CURRENCY (currency, for example, USD, enter % for percent in this field).
CHANGE_ID (input values: I insert, U update, D delete)
2. Structures POCOND and POCONDX are now only responsible for the item conditions.
When you use this function, you should fill the following fields:
ITM_NUMBER (line item number in the purchase order)
COND_VALUE (condition value, for example, 150.000)
CURRENCY (currency key, for example, USD; enter % for percent in this field)
CHANGE_ID (input values: I insert, U update, D delete)
3. In the ABAP Dictionary structure BAPIMEPOCOND, an indicator CHANGE_ID was included that you can use to control whether it is an update (U), a new entry (I) or a deletion (D).
Note 399791 - Enjoy-BAPI_PO...: Condition values are not transferred Note 197958 - BAPIs for purchase orders - Missing functions
Code:
REPORT ZPRUEBAPO2 .
data: POITEM like BAPIMEPOITEM occurs 0 with header line,
RETURN like BAPIRET2 occurs 0 with header line,
ITEM_HEADER like BAPIMEPOITEMX occurs 0 with header line,
*" POADDRDELIVERY STRUCTURE BAPIMEPOADDRDELIVERY OPTIONAL
POSCH like BAPIMEPOSCHEDULE occurs 0 with header line,
POSCHX like BAPIMEPOSCHEDULX occurs 0 with header line,
POACCOUNT like BAPIMEPOACCOUNT occurs 0 with header line,
*" POACCOUNTPROFITSEGMENT STRUCTURE BAPIMEPOACCOUNTPROFITSEGMENT
*" OPTIONAL
item_accx like BAPIMEPOACCOUNTX occurs 0 with header line,
*" POCONDHEADER STRUCTURE BAPIMEPOCONDHEADER OPTIONAL
*" POCONDHEADERX STRUCTURE BAPIMEPOCONDHEADERX OPTIONAL
POCOND like BAPIMEPOCOND occurs 0 with header line,
condxx like BAPIMEPOCONDX occurs 0 with header line.
*" POLIMITS STRUCTURE BAPIESUHC OPTIONAL
*" POCONTRACTLIMITS STRUCTURE BAPIESUCC OPTIONAL
*" POSERVICES STRUCTURE BAPIESLLC OPTIONAL
*" POSRVACCESSVALUES STRUCTURE BAPIESKLC OPTIONAL
*" POSERVICESTEXT STRUCTURE BAPIESLLTX OPTIONAL
*" EXTENSIONIN STRUCTURE BAPIPAREX OPTIONAL
*" EXTENSIONOUT STRUCTURE BAPIPAREX OPTIONAL
*" POTEXTHEADER STRUCTURE BAPIMEPOTEXTHEADER OPTIONAL
*" POTEXTITEM STRUCTURE BAPIMEPOTEXT OPTIONAL
*" POPARTNER STRUCTURE BAPIEKKOP OPTIONAL
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.