SAP SD_SALES_HEADER_MAINTAIN Function Module for NOTRANSL: Pflege des Verkaufsbelegkopfes









SD_SALES_HEADER_MAINTAIN is a standard sd sales header maintain SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Pflege des Verkaufsbelegkopfes processing and below is the pattern details for this FM, 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 sd sales header maintain FM, simply by entering the name SD_SALES_HEADER_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.

Function Group: V45A
Program Name: SAPLV45A
Main Program: SAPLV45A
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SD_SALES_HEADER_MAINTAIN 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 'SD_SALES_HEADER_MAINTAIN'"NOTRANSL: Pflege des Verkaufsbelegkopfes
EXPORTING
FVBAKKOM = "Communication Fields in Document Header
* FVBAKKOMX = "Checkbox for Document Header
* SUPPRESS_AVAILIBILITY_DIA = 'X' "No Dialog for Missing Availability
* SUPPRESS_TEXT_POPUP = 'X' "No Dialog Box of Long Texts Copied
* STATUS_BUFFER_REFRESH = 'X' "Initialise gGneral Status Management?
* MESSAGE_POPUP = "
* I_CALL_BAPI = ' ' "
* I_SIMULATION = ' ' "
* CALL_ACTIVE = ' ' "Function Code

IMPORTING
EKUAGV = "Ordering Party Data
EKURGV = "Payer Data
EKUWEV = "Ship-To Party Data
EVBAK = "Document header
EVBAKKOM = "Communication Fields in Document Header
EVBKD = "Business Data in Document Header

TABLES
FXVBPAKOM = "Communication Fields in Document Partners
* FXZAKAKOM = "Payment Cards
* FXBAPIADDR1 = "BAPI Reference Structure for Addresses (Org./Company)
* FXVBPA3KOM = "
.



IMPORTING Parameters details for SD_SALES_HEADER_MAINTAIN

FVBAKKOM - Communication Fields in Document Header

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

FVBAKKOMX - Checkbox for Document Header

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

SUPPRESS_AVAILIBILITY_DIA - No Dialog for Missing Availability

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

SUPPRESS_TEXT_POPUP - No Dialog Box of Long Texts Copied

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

STATUS_BUFFER_REFRESH - Initialise gGneral Status Management?

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

MESSAGE_POPUP -

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

I_CALL_BAPI -

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

I_SIMULATION -

Data type: SY-INPUT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALL_ACTIVE - Function Code

Data type: T185F-FCODE
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SD_SALES_HEADER_MAINTAIN

EKUAGV - Ordering Party Data

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

EKURGV - Payer Data

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

EKUWEV - Ship-To Party Data

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

EVBAK - Document header

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

EVBAKKOM - Communication Fields in Document Header

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

EVBKD - Business Data in Document Header

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

TABLES Parameters details for SD_SALES_HEADER_MAINTAIN

FXVBPAKOM - Communication Fields in Document Partners

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

FXZAKAKOM - Payment Cards

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

FXBAPIADDR1 - BAPI Reference Structure for Addresses (Org./Company)

Data type: BAPIADDR1
Optional: Yes
Call by Reference: Yes

FXVBPA3KOM -

Data type: VBPA3KOM
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for SD_SALES_HEADER_MAINTAIN 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_ekuagv  TYPE KUAGV, "   
lv_fvbakkom  TYPE VBAKKOM, "   
lt_fxvbpakom  TYPE STANDARD TABLE OF VBPAKOM, "   
lv_ekurgv  TYPE KURGV, "   
lv_fvbakkomx  TYPE VBAKKOMX, "   
lt_fxzakakom  TYPE STANDARD TABLE OF KOMFKZM, "   
lv_ekuwev  TYPE KUWEV, "   
lt_fxbapiaddr1  TYPE STANDARD TABLE OF BAPIADDR1, "   
lv_suppress_availibility_dia  TYPE BAPIADDR1, "   'X'
lv_evbak  TYPE VBAK, "   
lt_fxvbpa3kom  TYPE STANDARD TABLE OF VBPA3KOM, "   
lv_suppress_text_popup  TYPE VBPA3KOM, "   'X'
lv_evbakkom  TYPE VBAKKOM, "   
lv_status_buffer_refresh  TYPE VBAKKOM, "   'X'
lv_evbkd  TYPE VBKD, "   
lv_message_popup  TYPE VBKD, "   
lv_i_call_bapi  TYPE XFELD, "   SPACE
lv_i_simulation  TYPE SY-INPUT, "   SPACE
lv_call_active  TYPE T185F-FCODE. "   SPACE

  CALL FUNCTION 'SD_SALES_HEADER_MAINTAIN'  "NOTRANSL: Pflege des Verkaufsbelegkopfes
    EXPORTING
         FVBAKKOM = lv_fvbakkom
         FVBAKKOMX = lv_fvbakkomx
         SUPPRESS_AVAILIBILITY_DIA = lv_suppress_availibility_dia
         SUPPRESS_TEXT_POPUP = lv_suppress_text_popup
         STATUS_BUFFER_REFRESH = lv_status_buffer_refresh
         MESSAGE_POPUP = lv_message_popup
         I_CALL_BAPI = lv_i_call_bapi
         I_SIMULATION = lv_i_simulation
         CALL_ACTIVE = lv_call_active
    IMPORTING
         EKUAGV = lv_ekuagv
         EKURGV = lv_ekurgv
         EKUWEV = lv_ekuwev
         EVBAK = lv_evbak
         EVBAKKOM = lv_evbakkom
         EVBKD = lv_evbkd
    TABLES
         FXVBPAKOM = lt_fxvbpakom
         FXZAKAKOM = lt_fxzakakom
         FXBAPIADDR1 = lt_fxbapiaddr1
         FXVBPA3KOM = lt_fxvbpa3kom
. " SD_SALES_HEADER_MAINTAIN




ABAP code using 7.40 inline data declarations to call FM SD_SALES_HEADER_MAINTAIN

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.

 
 
 
 
 
 
 
 
DATA(ld_suppress_availibility_dia) = 'X'.
 
 
 
DATA(ld_suppress_text_popup) = 'X'.
 
 
DATA(ld_status_buffer_refresh) = 'X'.
 
 
 
DATA(ld_i_call_bapi) = ' '.
 
"SELECT single INPUT FROM SY INTO @DATA(ld_i_simulation).
DATA(ld_i_simulation) = ' '.
 
"SELECT single FCODE FROM T185F INTO @DATA(ld_call_active).
DATA(ld_call_active) = ' '.
 


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!