POS_CSGMT_OUT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name POS_CSGMT_OUT into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
WPOSN_CSGMT
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'POS_CSGMT_OUT' "Reduce MM Interface Table
EXPORTING
pis_edidc = " edidc Control Record (IDoc)
pi_storno = " xstbw Reversal transaction type
pis_emkpf = " emkpf MMIM: Output Structure For General FM To Post Goods Movement
pi_subrc = " sysubrc Return Value, Return Value after ABAP Statements
CHANGING
pct_imseg = " ty_t_imseg Tabellentyp für MM-Schnittstellentabelle
pct_emseg = " ty_t_emseg Tabellentyp für MM-Schnittstellenstruktur EMSEG
pc_csgmt_active = " pos_csgmt_active Single-character Indicator
pct_imseg_save = " ty_t_imseg Tabellentyp für MM-Schnittstellenstruktur IMSEG
pct_imsegta = " pos_csgmt_imsegta_tty Table Type for Additional Items
EXCEPTIONS
CX_POS_ERROR = 1 " Exception Class Pos Interface
. " POS_CSGMT_OUT
The ABAP code below is a full code listing to execute function module POS_CSGMT_OUT including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
DATA(ld_pct_imseg) = 'Check type of data required'.
DATA(ld_pct_emseg) = 'Check type of data required'.
DATA(ld_pc_csgmt_active) = 'Check type of data required'.
DATA(ld_pct_imseg_save) = 'Check type of data required'.
DATA(ld_pct_imsegta) = 'Check type of data required'.
DATA(ld_pis_edidc) = 'Check type of data required'.
DATA(ld_pi_storno) = 'Check type of data required'.
DATA(ld_pis_emkpf) = 'Check type of data required'.
DATA(ld_pi_subrc) = 'Check type of data required'. . CALL FUNCTION 'POS_CSGMT_OUT' EXPORTING pis_edidc = ld_pis_edidc pi_storno = ld_pi_storno pis_emkpf = ld_pis_emkpf pi_subrc = ld_pi_subrc CHANGING pct_imseg = ld_pct_imseg pct_emseg = ld_pct_emseg pc_csgmt_active = ld_pc_csgmt_active pct_imseg_save = ld_pct_imseg_save pct_imsegta = ld_pct_imsegta EXCEPTIONS CX_POS_ERROR = 1 . " POS_CSGMT_OUT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_pct_imseg | TYPE TY_T_IMSEG , |
| ld_pis_edidc | TYPE EDIDC , |
| ld_pct_emseg | TYPE TY_T_EMSEG , |
| ld_pi_storno | TYPE XSTBW , |
| ld_pc_csgmt_active | TYPE POS_CSGMT_ACTIVE , |
| ld_pis_emkpf | TYPE EMKPF , |
| ld_pct_imseg_save | TYPE TY_T_IMSEG , |
| ld_pi_subrc | TYPE SYSUBRC , |
| ld_pct_imsegta | TYPE POS_CSGMT_IMSEGTA_TTY . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name POS_CSGMT_OUT or its description.
POS_CSGMT_OUT - Reduce MM Interface Table POS_CSGMT_IN - Explode MM Interface Table POS_CREDIT_CARD_DATA_GET - POS-Schnittstelle: Besorgen der Kreditkarteninfo für Kundennummern. POS_CONDITION_POINTER_GET - Besorge die WIND-Daten über Zeitstempel POS_CONDITION_POINTER_ANALYSE2 - POS-Schnittstelle: Analyse der Änderungen für Konditionen. POS_CONDITION_POINTER_ANALYSE - POS-Schnittstelle: Analyse der Änderungspointer für Konditionen.