Sapscript driver program change

Hi guys,
I am printing a sapscript for AR customer invoice. It used the program 'RFKORD50' to trigger the sapscript. Currently it displays the line items with document type 'D' but I just want to display the line items with document type 'S'.
I have copied this program into a Z program and I made tried to just capture the document type 'S' but it is not displaying any line items. Can you please advise that where should I make the change.
Thanks for your assistance.
Regards,

Hi Johnny Oscar,
Since you have taken the program from NACE and created a Z copy of the same the changes need to be done at the FORM ENTRY of the program. The program gets triggered here. You can write the select queries, piece of code etc.
This should answer your query.
Reward Points if useful.
Thanks,
Tej..

Similar Messages

  • Sapscript Driver Program name

    Hi
    Can u please let me know how we can get the name of the driver program of the Sapscript?
    Thanks
    Ankul

    Hi,
    we can get them in the table TNAPR
    [Check this link|Where used list;
    Thanks&Regards
    Sarves

  • How can i change the sequence of text element in standard driver program ?

    Hi,
    can u tell me how can i change the sequence of text element in standard  sapscript driver program.. without making a zcopy of standard driver program.
    My problem is when MEDRUCK form is getting printed for PO print , header text is coming before item. But the requirement is to come it after item.So how cani do that without making the zcopy of  SAPLMEDRUCK program..Is there any enhancement point in SAPLMEDRUCK driver program..where i can put my customise code for changing the sequence of text element ?

    Hi,
        Just copy the MEDRUCK to ZMEDRUCK. No need to copy the driver program.
    1) SE71Menu > Utilities > COpy from Client
    MEDRUCK ->>Client 000
    New formname ZMEDRUCK
    2) Now open the ZMEDRUCK in DE language in SE71
    3) Menu > Utilities > Convert original Language
    Change DE  to EN, save and activate
    4) Now open the ZMEDRUCK in EN language
    5) Goto Pagewindows > Main window,
    Look for the HEADER text Text element, copy the whole code under this Text element just after the ITEM text Text element, and comment the HEADER text above.
    Now the Header text Text element will be below ITEM text only. This will full fill your requirment.
    Now goto NACE transaction and add the copied ZMEDRUCK to the EF application.
    Regards
    Bala Krishna

  • RFKORD10 - FB12 - Customer Account Statement - SmartFORM Driver Program ?

    Hi,
    Does anybody has smartform driver program for this RFKORD10's SAPScript Driver program?
    Or anybody done customized code? Please provide the code.
    Thanks in Advance
    Vinaa

    Hi Vinay,
    Driver program is also a normal program,which is to b created in SE38 or SE80.
    But,in the driver program,u need to use some functions such as OPEN_FORM,WRITE_FORM,CLOSE_FORM etc.....
    We've one option called Pattern in the tool bar,click that & type OPEN_FORM in that,then automatically the function comes into ur code.That function will have one importing parameter related to the Layoutset or Form.U just mention the form name over there,then automatically that form will b opened.Then use WRITE_FORM if u want to do some manipulations on that.
    Finally dont forget to close the form using CLOSE_FORM.
    Here is a sample code for u.
    This is the sample code.Here zpavscript1 is the form name.
    Just neglect the other parameters which r commented out.
    In Write _form,Address,Logo,Main etc are the Text element names which u've created in the form & where u want to place the particular code,just go through this.I hope will b useful for u..
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    APPLICATION = 'TX'
    ARCHIVE_INDEX =
    ARCHIVE_PARAMS =
    DEVICE = 'PRINTER'
    DIALOG = 'X'
    FORM = 'ZPAVSCRIPT1 '
    LANGUAGE = SY-LANGU
    OPTIONS =
    MAIL_SENDER =
    MAIL_RECIPIENT =
    MAIL_APPL_OBJECT =
    RAW_DATA_INTERFACE = '*'
    SPONUMIV =
    IMPORTING
    LANGUAGE =
    NEW_ARCHIVE_PARAMS =
    RESULT =
    EXCEPTIONS
    CANCELED = 1
    DEVICE = 2
    FORM = 3
    OPTIONS = 4
    UNCLOSED = 5
    MAIL_OPTIONS = 6
    ARCHIVE_ERROR = 7
    INVALID_FAX_NUMBER = 8
    MORE_PARAMS_NEEDED_IN_BATCH = 9
    SPOOL_ERROR = 10
    CODEPAGE = 11
    OTHERS = 12
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'ADDRESS'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'ADDRESS'
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    CODEPAGE = 9
    OTHERS = 10
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'ADDRESS1'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'ADDRESS1'
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    CODEPAGE = 9
    OTHERS = 10
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'LOGO'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'LOGO'
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    CODEPAGE = 9
    OTHERS = 10
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'LOGO1'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'LOGO1'.
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    CODEPAGE = 9
    OTHERS = 10
    *IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    *CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'HEADER'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'MAIN'.
    LOOP AT I_VBAP INTO WA_VBAP.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'MAIN'
    FUNCTION = 'APPEND'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    CODEPAGE = 9
    OTHERS = 10
    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'
    IMPORTING
    RESULT =
    RDI_RESULT =
    TABLES
    OTFDATA =
    EXCEPTIONS
    UNOPENED = 1
    BAD_PAGEFORMAT_FOR_PRINT = 2
    SEND_ERROR = 3
    SPOOL_ERROR = 4
    CODEPAGE = 5
    OTHERS = 6
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    kindly reward if found helpful.,
    cheers,
    Hema.

  • Can we change the value of a variable in the driver program from sapscript?

    Hello Experts,
    I am currently developing a form wherein I need to change the value of a variable defined in the standard
    driver program through the sapscript form. Unfortunately, I cannot customize this standard program since this is used by many other
    subsidiaries. So, is there anyway that I can change a variable defined in the driver program via sapscript?
    I tried to use a PERFORM to change its value but it is not working.
    I hope you can help me guys. Thank you and take care!

    SAP SCRIPT:
    /: PERFORM GET_ATTNDEE_INFO IN PROGRAM ZHR_TRNG
    /: USING &PPVAR-EOBJD&
    /: CHANGING &ATTND&
    /: ENDPERFORM
    Executable Prog.:
    REPORT ZHR_TRNG.
    FORM GET_ATTNDEE_INFO TABLES IN_PAR STRUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA : LOC_CODE(8),
    WF_NAME LIKE PA0001-ENAME, "----Location Code
    WF_SOBID LIKE HRP1001-SOBID. "----Business Event Code
    DATA: BEGIN OF ITAB_ECODE OCCURS 0,
    ECODE(8),
    END OF ITAB_ECODE.
    DATA: NAME1 TYPE STRING.
    READ TABLE IN_PAR INDEX 1.
    LOC_CODE = IN_PAR-VALUE.
    SELECT SOBID FROM HRP1001 INTO WF_SOBID
    WHERE OBJID = LOC_CODE AND OTYPE ='E' AND PLVAR = '01' AND SCLAS = 'P'.
    APPEND WF_SOBID TO ITAB_ECODE .
    ENDSELECT.
    IF SY-SUBRC = 0.
    LOOP AT ITAB_ECODE.
    SELECT SINGLE ENAME FROM PA0001 INTO WF_NAME
    WHERE PERNR = ITAB_ECODE-ECODE ." AND ENDDA >= '31.12.9999' .
    CONCATENATE 'Mr ' WF_NAME ',' NAME1 INTO NAME1.
    IF SY-SUBRC = 0 .
    OUT_PAR-NAME = 'ATTND'.
    OUT_PAR-VALUE = NAME1.
    APPEND OUT_PAR.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDFORM. "GET_USR_INFO

  • Change values of driver program from sapscript form...

    Hello Experts,
    Can we change the values in driver program from the sapscript program during runtime? Because it always
    generates 2 pages well in fact the main window only has 1 line of content! I also cannot change the driver program
    since it is a standard and they won't let me. Hope you can help me guys.
    Thank you and take care!

    Hi,
    I don't think you need to make any changes in the Driver Program,just check in your Script
    1. are you triggering a NEW-PAGE any where ,where its not needed,
    2. check in the Standard Attributes of the page have you configured any other page there in NNEXT PAGE.
    Regards,
    Neha

  • Change sapscript without changing the driver program

    Hi! Abapers
    is there any way out to modify sapscript for the transaction code ME22N without changing the driver program.
    thankx
    Amit
    TCL

    Hi,
    Yes you can change the form to your needs and use the text elements available in print program and if any thing which you are needed is not available write performs in your script itself and try to fetch your data. configure your new form in nace transaction.
    Thats it..
    Reward if find useful

  • How to find driver program from sapscript

    hi
    how do i find name of the report where the sapscript is used.
    I have one sapscript & a subroutine pool but name of the report is where this script elements are called is not known.
    The program is executed through transaction & first page of output is alv . If I select one row & click on the button provided on staus bar it shows output of sapscript.
    how do i find out name of the driver program which calls the script.
    Regards
    Harshada

    Hi,
    Use tcode : NACE and follow procedure as follows.
    For eg:
    1)Choose Application from list(eg PO)
    2)Click OP type
    3)Chose one OP type from Right pane.
    4)Click on processing routines
    and you got it

  • U00BFCan I use a function module as a driver program for sapscript?

    Hi,
    I have to use a function module as driver program for sapscript and there is no any value in the form (the data are not transferred)...
    but if I call the sapcript from a report with the same code as in my function module all the data are transferred OK.
    please, can you tell me if there is any problem in use of a function module in this case? is it impossible at all or is there any tip to apply?
    thank you all in advance.

    Hi,
    first of all it is possible to use a function module to process a SapScript form.
    The mistake on your side is probably the definition of the variables that you want to pass to the form. Please make sure they are defined as global (via SE37 --> Goto --> Global Data) then it should be working.
    In addition you could take a look at e.g. function module "PRINT_DUNNING_NOTICE". This is SAP standard and they are using it to print a SapScript form.
    Best regards
    Arno Speitkamp

  • Driver program for Sapscript form

    Hi All,
    My Sapscript Z From has been configured for company code,and it is present in table T042B.
    T042B-ZBUKR = 4418 (company code)
    T042B-AFORN = ZCOTL_ADVICE (SAPSCRIPT FORM)
    Can anyone please tell me from which table I should get the Driver Program for the above Sapscript Form.
    Kindly Reply ASAP.
    Rishi

    Hello Rishi,
    Could you please let us know how did you find the driver program for the forms in FICO
    Thanks,
    Smita

  • Change in driver program

    i have driver program named RFFOUS_C ....... attached with sap-script named F110_PRENUM_CHCK.
    i want to attach my sap-script (copied one) with this driver program to see output after i do changes.
    please help me.....

    Hi,
    you can ask your functinal consultant to attach your
    zscript in the spro transaction...
    i have did like that and it is working fine
    reward points if helpful..
    regards,
    venkatesh

  • Importing values in sapscript from outside driver program

    Hi,
    I have a requirement where I have to import some values exported in some user-exit inside my text-element within the form. The driver program for the script is standard prg so cannot chg that. Any help in this regard is highly appreciated

    Hi,
        Try with calling a Subroutine in the sapscript.
    Regards
    Bala Krishna

  • Credit and debit memo sapscript prog and driver program

    Hi all, i need debit and credit memo sap-script forms and their drivers???? please help
    thanks.

    Hello Amit,
    The form for debit/credit memo is: F140_DOCU_EXC_01
    Driver program is: RFKORD11..
    Thanks,
    Dishant

  • Please tell me the driver program of  the sapscript J_1i_are1 ?

    Please tell me the driver program of  j_1i_are1 and which table is populating before printing ?
    I have to add chapter id for the particular material is it feasible ?
    Please help .

    Hi Aanchal,
    TADIR Entries
    Object Description  TADIR Entry 
    Program ID         Object Type         Object Name        Program ID        Object Type          Object Name 
            LIMU             REPS               J_1IPRNTARE                 R3TR                  PROG          J_1IPRNTARE 
    Therefore the program name is J_1IPRNTARE
    Regards,
    Md Ziauddin

  • How to find out driver program of a sapscript/smartform?

    hi,
    if the form and print program are not configured through nace then how to find the driver program of a form ie in which table form name and print program are stored?
    i have seen that if config is not don ethru nace then we will find no entry in table tnapr....
    Please help...

    Hi Swetha,
                    May I know the reason y u need to create print program and form WITHOUT doing any configuration in NACE ??? DO u mean that, the FORM which u have created is not related to any MODULE ? SAP is truly for BUSINESS purpose NOT for any other purpose. Every form which is created is related to some MODULE without which there is no use of creating it, of course it can be helpful for Testing purpose.
    Hope ur Q is answered.
    Thanks & Regards,
    V.Raghavender.

Maybe you are looking for

  • Toshiba L305 stops at BIOS splashscreen

    Hello all, My L305 won't boot past the BIOS splash screen. Pressing F2 or F12 does nothing. All lights appear to be functioning normally. The HDD light turns on for a second then is always off. It appears there is no disc activity. What I have tried:

  • External Hard Drive for use on PC and Mac

    I just purchased a SimpleTech external USB harddrive. I can copy files from both PC and MAC to it. However, --files transferred from PC are not visible to the MAC. --Files transferred from the MAC are visible by the PC, but when changed on PC the cha

  • Consolidation in special posting period

    Hi All, I am using the Fiscal year variant April to March with 4 special posting periods in ECC. I am using the same in BCS too. I am taking the data through LFDS with posting period move. I am using quarterly consolidation which is period 3, 6, 9 an

  • Writing XML files

    Hello all There's a vast amount of information on the java.sun.com site about parsing XML files: * creating DOM trees in memory from an XML file * setting up event handlers to be called when an XML file is parsed * transforming XML files using XSL. H

  • What is unknown error exception

    Hi, While uploading a table from text file, I am getting this error: Exception condition "UNKNOWN_ERROR" raised. What does it mean? Thanks.