SAP CTW_WM_READ_PROPOSAL Function Module for









CTW_WM_READ_PROPOSAL is a standard ctw wm read proposal SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for ctw wm read proposal FM, simply by entering the name CTW_WM_READ_PROPOSAL into the relevant SAP transaction such as SE37 or SE38.

Function Group: CTW_WM
Program Name: SAPLCTW_WM
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CTW_WM_READ_PROPOSAL pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'CTW_WM_READ_PROPOSAL'"
EXPORTING
* IV_VERBOSE = "
IV_SYSNAME = "
IV_FORMNUMBER = "Proposal Number
* IV_READ_CTWFREQUST = GC_X "
* IV_READ_CTWFTARGET = GC_X "

IMPORTING
ES_EXCEPTION = "

CHANGING
CS_PROPOSAL = "Transport Proposal
.



IMPORTING Parameters details for CTW_WM_READ_PROPOSAL

IV_VERBOSE -

Data type: FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SYSNAME -

Data type: CTWFPROPOS-SYSNAME
Optional: No
Call by Reference: No ( called with pass by value option)

IV_FORMNUMBER - Proposal Number

Data type: CTWFPROPOS-FORMNUMBER
Optional: No
Call by Reference: No ( called with pass by value option)

IV_READ_CTWFREQUST -

Data type: FLAG
Default: GC_X
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_READ_CTWFTARGET -

Data type: FLAG
Default: GC_X
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CTW_WM_READ_PROPOSAL

ES_EXCEPTION -

Data type: STMSCALERT
Optional: No
Call by Reference: Yes

CHANGING Parameters details for CTW_WM_READ_PROPOSAL

CS_PROPOSAL - Transport Proposal

Data type: CTWFFORM
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CTW_WM_READ_PROPOSAL Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_iv_verbose  TYPE FLAG, "   
lv_cs_proposal  TYPE CTWFFORM, "   
lv_es_exception  TYPE STMSCALERT, "   
lv_iv_sysname  TYPE CTWFPROPOS-SYSNAME, "   
lv_iv_formnumber  TYPE CTWFPROPOS-FORMNUMBER, "   
lv_iv_read_ctwfrequst  TYPE FLAG, "   GC_X
lv_iv_read_ctwftarget  TYPE FLAG. "   GC_X

  CALL FUNCTION 'CTW_WM_READ_PROPOSAL'  "
    EXPORTING
         IV_VERBOSE = lv_iv_verbose
         IV_SYSNAME = lv_iv_sysname
         IV_FORMNUMBER = lv_iv_formnumber
         IV_READ_CTWFREQUST = lv_iv_read_ctwfrequst
         IV_READ_CTWFTARGET = lv_iv_read_ctwftarget
    IMPORTING
         ES_EXCEPTION = lv_es_exception
    CHANGING
         CS_PROPOSAL = lv_cs_proposal
. " CTW_WM_READ_PROPOSAL




ABAP code using 7.40 inline data declarations to call FM CTW_WM_READ_PROPOSAL

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
"SELECT single SYSNAME FROM CTWFPROPOS INTO @DATA(ld_iv_sysname).
 
"SELECT single FORMNUMBER FROM CTWFPROPOS INTO @DATA(ld_iv_formnumber).
 
DATA(ld_iv_read_ctwfrequst) = GC_X.
 
DATA(ld_iv_read_ctwftarget) = GC_X.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!