Greetings,
it turns out that changing data in a purchase order which ought to impact pricing does not trigger re-pricing.
For that to work, you must know the following:
* You must set for the item ( bapimepoitem ) in question calctype to 'B'
* You must set for the corresponding itemx ( bapimepoitemx ) calctype to 'X'.
* Look at the domain values of KNPRS if you wish to not just 'Carry out new Pricing'
If you want to override the default pricing date, you can set it by changing bapimepoitem-pricedate.
Obviously, it would be bad practice to force re-pricing by default if you are concerned about system load and response times.
Hat tip to:
http://help-sap.blogspot.com/2012/07/po-re-price-issue-in-bapipochange.html
Tuesday, June 25, 2013
Zip files with ABAP
Greetings,
I've noticed that every project of sufficient complexity requires zipped files.
Whereas before we used to fiddle with command line zip programs and OS commands, we can now use the extremely simple CL_ABAP_ZIP. Simply create the object, add files by calling the method ADD, get the zip file in an XSTRING by calling SAVE.
I've noticed that every project of sufficient complexity requires zipped files.
Whereas before we used to fiddle with command line zip programs and OS commands, we can now use the extremely simple CL_ABAP_ZIP. Simply create the object, add files by calling the method ADD, get the zip file in an XSTRING by calling SAVE.
Mass updating of anything
Greetings,
part of why I started this blog is because much of the knowledge I find with Google is stored on sites that have not been touched in years, so I jot down the things that took a longer time to find .
If you want to see whether you can mass update a business object ( purchase order in my case ), try the transaction MASS.
part of why I started this blog is because much of the knowledge I find with Google is stored on sites that have not been touched in years, so I jot down the things that took a longer time to find .
If you want to see whether you can mass update a business object ( purchase order in my case ), try the transaction MASS.
Choose your object, and Bob's your uncle.
String Templates!
Greetings,
String templates are awesome, learn about them, use them !
Help: http://help.sap.com/abapdocu_702/en/abenstring_templates.htm
A simple example would be a header string in a report that indicates who ran the report at what time, with what variant.
l_message = |Recipe upload program report run by { sy-uname } on { sy-datum DATE = USER } at { sy-uzeit TIME = USER }|.
This will properly insert the variables sy-uname, sy-datum and sy-uzeit. And with properly I mean that the date and the time will be written out with the user preferences.
This has saved me so much time on my current project.
String templates are awesome, learn about them, use them !
Help: http://help.sap.com/abapdocu_702/en/abenstring_templates.htm
A simple example would be a header string in a report that indicates who ran the report at what time, with what variant.
l_message = |Recipe upload program report run by { sy-uname } on { sy-datum DATE = USER } at { sy-uzeit TIME = USER }|.
This will properly insert the variables sy-uname, sy-datum and sy-uzeit. And with properly I mean that the date and the time will be written out with the user preferences.
This has saved me so much time on my current project.
Subscribe to:
Posts (Atom)