Skip to Content
avatar image
Former Member

Driver program in SAP Script

Dear all

I want to make a driver program in sapscripts for Delivery note...since i am new to this topic then also i am done with the layout . please help me the program. i want the example code which is easy to read and understand.

thanks in advance...

Mohit

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 01, 2008 at 01:49 PM

    Hi,

    RLE_DELNOTE is Print program

    Regards,

    Nageswar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 01, 2008 at 01:52 PM

    Hi Mohit,

    Go through the following code.

    START-OF-SELECTION.

    PERFORM GET_DATA CHANGING WA_MARC

    I_MARC.

    PERFORM GET_DATA1 CHANGING I_MARC

    I_VBAP.

    CALL FUNCTION 'OPEN_FORM'

    EXPORTING

    • APPLICATION = 'TX'

    • ARCHIVE_INDEX =

    • ARCHIVE_PARAMS =

    • DEVICE = 'PRINTER'

    • DIALOG = 'X'

    FORM = 'ZPAVSCRIPT1'

    LANGUAGE = SY-LANGU .

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    LOOP AT I_VBAP INTO WA_VBAP.

    CALL FUNCTION 'WRITE_FORM'

    EXPORTING

    ELEMENT = 'MAIN'

    FUNCTION = 'APPEND'

    TYPE = 'BODY'

    WINDOW = 'MAINÂ’.

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    ENDLOOP.

    CALL FUNCTION 'CLOSE_FORM' .

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    In the script layout,create a MAIN window,in that create a Text element (i named it MAIN in my program).

    call these functions using button "Pattern" in toolbar.

    In the above forms Get_data & get_data1,write the required code.....

    This is the example code to b written in driver program...

    Dont forget to reward points if helpful....

    Pavan.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 01, 2008 at 03:23 PM

    Standard print program is:

    SDPACKLI

    Standard SAPscript form is:

    SD_PACKING_LIST

    IMG config:

    Logistics Execution | Shipping | Basic Shipping Functions | Output Control | Output Determination | Maintain Output Determination for Outbound Deliveries | Maintain Output Types

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 09, 2008 at 11:11 AM

    thanks sdn

    Add comment
    10|10000 characters needed characters exceeded