Go on link..

link us with ...

Monday, December 13, 2010

FUNCTION MODULE programming

*&---------------------------------------------------------------------*
*& Report ZTR_DEMO_REPORT17 *
*& *
*&---------------------------------------------------------------------*
*& *
*& *
*&---------------------------------------------------------------------*

REPORT ZTR_DEMO_REPORT17 .

TABLES : VBAK .


TYPES : BEGIN OF ST_RANGE ,


SIGN(1) TYPE C,
OPTION(2) TYPE C,
LOW(10) TYPE C,
HIGH(10) TYPE C,

END OF ST_RANGE .



DATA : WA_VBELN TYPE ST_RANGE.
DATA : TP_VBELN LIKE STANDARD TABLE OF WA_VBELN.
DATA : TO_SALES_INFORMATION LIKE STANDARD TABLE OF ZLINE_STRUCT .

*** Selection-screen design

SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE T1 .

SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.

SELECTION-SCREEN : END OF BLOCK B1 .



WA_VBELN-SIGN = S_VBELN-SIGN.
WA_VBELN-OPTION = S_VBELN-OPTION.
WA_VBELN-LOW = S_VBELN-LOW.
WA_VBELN-HIGH = S_VBELN-HIGH.

APPEND WA_VBELN TO TP_VBELN .

CALL FUNCTION 'ZTR_DEMO_FUNCTION_MODULE2'
TABLES
T_VBELN = TP_VBELN
T_SALES_INFORMATION = TO_SALES_INFORMATION .
.

BREAK-POINT.

No comments:

link us...

For Visitors

if you want to publish or Add something on ERP, SAP , SAP FUNCTIONAL, SAP ABAP then mail us along with your email-id. contain must be yours

email-id :- avinashkr_raj@yahoo.com(any email)

email-id :- avinaskr_raj.abap@blogger.com ( use only gmail)