POSED_READ_TR_DATA_WPUBON 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 POSED_READ_TR_DATA_WPUBON into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
WPED
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'POSED_READ_TR_DATA_WPUBON' "
EXPORTING
i_assignment = " i
IMPORTING
o_bonheader = " posedbonheader
o_segnum = " edidd-segnum
o_segnum_end = " edidd-segnum
TABLES
o_e1wpb02 = " e1wpb02
o_line_item_value = " e1wpb03
* o_discounts = " poseddiscountinterface
* o_tenders = " e1wpb06
* o_header_discounts = " e1wpb05
* o_header_taxes = " e1wpb07
* o_wplst = " wplst
* o_custenhancements = " posedcustenhaceinterface
* o_taxes = " posedlitaxesinterface
. " POSED_READ_TR_DATA_WPUBON
The ABAP code below is a full code listing to execute function module POSED_READ_TR_DATA_WPUBON 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).
| ld_o_bonheader | TYPE POSEDBONHEADER , |
| ld_o_segnum | TYPE EDIDD-SEGNUM , |
| ld_o_segnum_end | TYPE EDIDD-SEGNUM , |
| it_o_e1wpb02 | TYPE STANDARD TABLE OF E1WPB02,"TABLES PARAM |
| wa_o_e1wpb02 | LIKE LINE OF it_o_e1wpb02 , |
| it_o_line_item_value | TYPE STANDARD TABLE OF E1WPB03,"TABLES PARAM |
| wa_o_line_item_value | LIKE LINE OF it_o_line_item_value , |
| it_o_discounts | TYPE STANDARD TABLE OF POSEDDISCOUNTINTERFACE,"TABLES PARAM |
| wa_o_discounts | LIKE LINE OF it_o_discounts , |
| it_o_tenders | TYPE STANDARD TABLE OF E1WPB06,"TABLES PARAM |
| wa_o_tenders | LIKE LINE OF it_o_tenders , |
| it_o_header_discounts | TYPE STANDARD TABLE OF E1WPB05,"TABLES PARAM |
| wa_o_header_discounts | LIKE LINE OF it_o_header_discounts , |
| it_o_header_taxes | TYPE STANDARD TABLE OF E1WPB07,"TABLES PARAM |
| wa_o_header_taxes | LIKE LINE OF it_o_header_taxes , |
| it_o_wplst | TYPE STANDARD TABLE OF WPLST,"TABLES PARAM |
| wa_o_wplst | LIKE LINE OF it_o_wplst , |
| it_o_custenhancements | TYPE STANDARD TABLE OF POSEDCUSTENHACEINTERFACE,"TABLES PARAM |
| wa_o_custenhancements | LIKE LINE OF it_o_custenhancements , |
| it_o_taxes | TYPE STANDARD TABLE OF POSEDLITAXESINTERFACE,"TABLES PARAM |
| wa_o_taxes | LIKE LINE OF it_o_taxes . |
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_o_bonheader | TYPE POSEDBONHEADER , |
| ld_i_assignment | TYPE I , |
| it_o_e1wpb02 | TYPE STANDARD TABLE OF E1WPB02 , |
| wa_o_e1wpb02 | LIKE LINE OF it_o_e1wpb02, |
| ld_o_segnum | TYPE EDIDD-SEGNUM , |
| it_o_line_item_value | TYPE STANDARD TABLE OF E1WPB03 , |
| wa_o_line_item_value | LIKE LINE OF it_o_line_item_value, |
| ld_o_segnum_end | TYPE EDIDD-SEGNUM , |
| it_o_discounts | TYPE STANDARD TABLE OF POSEDDISCOUNTINTERFACE , |
| wa_o_discounts | LIKE LINE OF it_o_discounts, |
| it_o_tenders | TYPE STANDARD TABLE OF E1WPB06 , |
| wa_o_tenders | LIKE LINE OF it_o_tenders, |
| it_o_header_discounts | TYPE STANDARD TABLE OF E1WPB05 , |
| wa_o_header_discounts | LIKE LINE OF it_o_header_discounts, |
| it_o_header_taxes | TYPE STANDARD TABLE OF E1WPB07 , |
| wa_o_header_taxes | LIKE LINE OF it_o_header_taxes, |
| it_o_wplst | TYPE STANDARD TABLE OF WPLST , |
| wa_o_wplst | LIKE LINE OF it_o_wplst, |
| it_o_custenhancements | TYPE STANDARD TABLE OF POSEDCUSTENHACEINTERFACE , |
| wa_o_custenhancements | LIKE LINE OF it_o_custenhancements, |
| it_o_taxes | TYPE STANDARD TABLE OF POSEDLITAXESINTERFACE , |
| wa_o_taxes | LIKE LINE OF it_o_taxes. |
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 POSED_READ_TR_DATA_WPUBON or its description.