Académique Documents
Professionnel Documents
Culture Documents
Its a typical ABAPer scenario: you need to create or update SAP data and
youre fairly certain there should be a standard function module around that
data. So how do you go about finding that function module?
Select Status from the System menu and look at the last 4 characters of the
program name in this case, CFST.
Now go to SE37 and click the function module search help. Put the 4
characters into the function group name and search.
You can also try searching for function modules (not function groups) using the
pattern *CFST* or *CF_ST* (using the characters specific to your scenario).
In this case, I was able to find a less-than-intuitively-named function module to
create PRTs.
2.
BAPI_PO_CREATE1 is used to create Purchase order but even after getting a success message as output we are not able
to see the Purchase Order created because the work done by this BAPI is not committed in database. That's why we have
to use BAPI_TRANSACTION_COMMIT.
Go to transaction SE37. Go to menu Function Module->Test->Test Sequences as shown:
The BAPI_PO_CREATE test is opened. Give the Header and Item Data (Header and Item data may vary according to
configuration of your system)
Click on the icon next to refresh or (Shift + F7) to have a better view to enter the DATA.
In POITEMX you have to put 'X' for the values you entered in POITEM.
Execute the function module and check the RETURN table. If you get the success message then only the next BAPI
BAPI_TRANSACTION_COMMIT is useful.
So, once you get the success message go back. It will take you to the next function module.
Give the value 'X' for input wait and execute. Work is committed now you can check the Purchase Order created.
Go to Transaction Me23/Me23n to check Purchase order created.