Have you were lacking sometimes the documentation of a FM or BAPI or a manual how to do things that should be possible to do easily but you cannot find it nowhere? If yes I hope you can find what you're ...
Our characteristics update screen was displayed, data was changes so we need to read the reference data and put the values into BAPI structures in order to be able to save the values to database. I will ...
Following the example of downloading exchange rates from Central Bank Of Turkey using transformations, please find bellow the same way for National Bank of Poland.
Again, lets create an RFC destination ...
... XML from bank site into internal table, which can be then used inside your code to populate values of BAPI_EXCHANGERATE_CREATE FM.
There are few ways to download the XML to your ABAP code, I prefer ...
... perfect) class to handle the creation or update of customer master data with CMD_EI_API=>MAINTAIN_BAPI method.
The whole source code is available as current version on Github, from where you can instal ...
... Also to update Z fields from all customer and vendor related tables. But lately after upgrade from 7.40 SP5 to 7.40 SP16 the method maintain_bapi was not saving the changes to the customers.
After ...
...
The conclusion is: do not assume that if something is workning in standard transaction, will work also in BAPI without additional settings :-)
Bellow you can find piece of code which I used ...
... message variables (MSGNO, MSGID, MSGV1, .. etc) so you can also easily use it together with BAPIs and return tables. I'd say with this method your code can look cleaner than before and for sure ...
...
data: gt_return type bapiret2_t.
data: gs_return type bapiret2.
data: g_error type c.
field-symbols: like line of gt_assignment.
field-symbols: like line of gt_plan.
selection-screen begin of block exc with frame title text-exc. ...
...
* TABLES
* IESDUS = IESDUS
. 2. You create MM documents using BAPI and you want that next time you open MM t-code which is used to display/edit this document then your document appears ...
... there. Sometimes not last but one of the lasts and you want to make it always last. You create MM documents using BAPI and you want that next time you open MM t-code which is used to display/edit this ...
Now it's time to save the values entered into database. I will use here previously created method to move data from reference structure to BAPI tables, then I will read values from database to see ...
Now we're ready to build the data for screen output, call the update screen and then move the data back from screen to reference data. We will use here: COC1_FEATURE_CHECK to get characteristic ID ...
... my reference data structure to bapi tables (in order to save it) - method to save characteristic value - method to convert values from standard type (date, char, number, currency) to characteristic value ...
... in part 1. To get the characteristics values for an object I will use FM BAPI_OBJCL_GETDETAIL, then using field-symbols I will move the data from its result tables to our structure. I will use also cl_abap_typedescr ...
... or method which will do it for you so you can keep the logic in each of your program without doing maual work. To create the structure of the class I will use FM BAPI_CLASS_READ to read class data, ...
... like that also with delete routing function which I share with you today. There is no BAPI_ROUTING_DELETE (yet), so firsty we had to load the task to EWB memory with 'CP_CC_S_LOAD_COMPLEX_BY_TSK' ,then ...