ABAP – How to create/modify Source lists

In this code snippet I’ll demonstrate how to create or modify a source list (TCode ME01). I did’t find a suitable “standard way” how to do it, but after digging in the function module which processes inboud IDOC for source list (IDOC_INPUT_SRCLST) I managed to replicate the functionality in my own code.

Continue reading

SAP SRM – Get current status of a Shopping Cart

SAPThere is a general function module (BBP_PD_SC_GETDETAIL) to get overall summary of a shopping cart which also provides a list of statuses assigned to the shopping cart. But this list tells you nothing about which status is the actual one. And how to find out the correct one? Continue reading

ABAP – Additional button in the selection screen toolbar

SAPIn this short code snippet you can find out how to add additional buttons to the selection screen and trigger user-defined functions based on what user clicks on.

This specific example shows how to display current report’s documentation.

Note: The INFO button is added to the selection screen automatically once you maintain the report’s documentation, but the following code should serve as a reference on how a similar thing can be done manually. Continue reading

SAP – Movement Types

SAPWhat Is a Movement Type?
When you enter a goods movement in the system, you must enter a movement type to differentiate between the various goods movements. A movement type is a three-digit identification key for a goods movement. The following table contains examples of movement types. Continue reading