SAP LXYRD_ACTIVITY_CREATE Function Module for Create activity for reference documents









LXYRD_ACTIVITY_CREATE is a standard lxyrd activity create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create activity for reference documents 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 lxyrd activity create FM, simply by entering the name LXYRD_ACTIVITY_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function LXYRD_ACTIVITY_CREATE 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 'LXYRD_ACTIVITY_CREATE'"Create activity for reference documents
EXPORTING
IV_LYARD = "Yard
IT_HU_HEADERS = "HU for Yard Monitor
* IR_DELIVERY = "Table type of a Range for a (10) Character Field
* IV_SHOW_MESSAGE = 'X' "General Flag
* IV_LOCATION = "Location
IV_ACTTY = "Activity type
* IV_ACTIVITY_STATUS = "Activity Status
* IV_AUCNF = 'X' "General Flag
* IV_CALL_SCREEN = 'X' "General Flag
* IV_EXOBJ = "Execution Object
* IV_PRINT_INST = "General Flag
* IV_PRINTER = "Name of printer
* IV_COPIES = 1 "

IMPORTING
ET_LYACT = "Activities

EXCEPTIONS
SERVICE_FAILURE = 1 SERVICE_CANCEL = 2
.



IMPORTING Parameters details for LXYRD_ACTIVITY_CREATE

IV_LYARD - Yard

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

IT_HU_HEADERS - HU for Yard Monitor

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

IR_DELIVERY - Table type of a Range for a (10) Character Field

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

IV_SHOW_MESSAGE - General Flag

Data type: FLAG
Default: 'X'
Optional: Yes
Call by Reference: Yes

IV_LOCATION - Location

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

IV_ACTTY - Activity type

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

IV_ACTIVITY_STATUS - Activity Status

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

IV_AUCNF - General Flag

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

IV_CALL_SCREEN - General Flag

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

IV_EXOBJ - Execution Object

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

IV_PRINT_INST - General Flag

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

IV_PRINTER - Name of printer

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

IV_COPIES -

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

EXPORTING Parameters details for LXYRD_ACTIVITY_CREATE

ET_LYACT - Activities

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

EXCEPTIONS details

SERVICE_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

SERVICE_CANCEL -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for LXYRD_ACTIVITY_CREATE 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_et_lyact  TYPE LYACT_T, "   
lv_iv_lyard  TYPE LXYRD_YARD, "   
lv_service_failure  TYPE LXYRD_YARD, "   
lv_it_hu_headers  TYPE LEINT_YHU_HEADER_T, "   
lv_ir_delivery  TYPE LXHME_RANGE_C10_T, "   
lv_iv_show_message  TYPE FLAG, "   'X'
lv_iv_location  TYPE LXYRD_YLOCT, "   
lv_iv_actty  TYPE LXYRD_ACTTY, "   
lv_service_cancel  TYPE LXYRD_ACTTY, "   
lv_iv_activity_status  TYPE LXYRD_ACTST, "   
lv_iv_aucnf  TYPE FLAG, "   'X'
lv_iv_call_screen  TYPE FLAG, "   'X'
lv_iv_exobj  TYPE LXYRD_EXOBJ, "   
lv_iv_print_inst  TYPE FLAG, "   
lv_iv_printer  TYPE LXYRD_LDEST, "   
lv_iv_copies  TYPE I. "   1

  CALL FUNCTION 'LXYRD_ACTIVITY_CREATE'  "Create activity for reference documents
    EXPORTING
         IV_LYARD = lv_iv_lyard
         IT_HU_HEADERS = lv_it_hu_headers
         IR_DELIVERY = lv_ir_delivery
         IV_SHOW_MESSAGE = lv_iv_show_message
         IV_LOCATION = lv_iv_location
         IV_ACTTY = lv_iv_actty
         IV_ACTIVITY_STATUS = lv_iv_activity_status
         IV_AUCNF = lv_iv_aucnf
         IV_CALL_SCREEN = lv_iv_call_screen
         IV_EXOBJ = lv_iv_exobj
         IV_PRINT_INST = lv_iv_print_inst
         IV_PRINTER = lv_iv_printer
         IV_COPIES = lv_iv_copies
    IMPORTING
         ET_LYACT = lv_et_lyact
    EXCEPTIONS
        SERVICE_FAILURE = 1
        SERVICE_CANCEL = 2
. " LXYRD_ACTIVITY_CREATE




ABAP code using 7.40 inline data declarations to call FM LXYRD_ACTIVITY_CREATE

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_iv_show_message) = 'X'.
 
 
 
 
 
DATA(ld_iv_aucnf) = 'X'.
 
DATA(ld_iv_call_screen) = 'X'.
 
 
 
 
DATA(ld_iv_copies) = 1.
 


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!