Line Item in SapScripts

Hello Experts,
I'm trying to printing customer invoice line item in a form. But it is only printing 1st line of the line item.
I'm trying to print all documents of the table BSEG.
Please advice if I need any coding in SAP scripts.
If I need any ABAP coding then please let me know where I should write it.
My SAPscript code looks like:
code]
/E 20  520
/*     - Line items heading -[
T1:   &BKPF-BLDAT&,,&BSEG-BELNR&,,&BSEG-SGTXT& ,,,,&BSEG-WRBTR&
T1:   ,,&RF140-VTEXT',,&RF140-MSATZ&%,,,,&RF140-MWSHB&'&
T1:  ,,,,,,,,&uline(20)&
T1:  ,,,,,,,,&RF140-GSALDF&
[/code]
Thanks

Hi Arun,
I have only modified the table fields.
The Main window of standard form F140_DOCU_EXC_02 displaying field from tables BSEG, BKPF, RF140, RF140 and has the following code:
[code]
/E 520
/* - Line items heading -
AS
UL &uline(71)&
T1 <k>Doc.No.,,,,Date</>
UL &uline(71)&
/E 521
/* - Line items heading -
T1 &BSEG-BELNR&,,,,&BKPF-BLDAT&,,&RF140-WAERS&,,&RF140-WRSHB&
T1 ,,&BSEG-SGTXT&
T1 &RF140-VTEXT',,&RF140-MSATZ&%,,,,&RF140-WAERS&,,&RF140-MWSHB&'&
T1 ,,,,,,,,&uline(20)&
T1 Brutto,,,,,,&RF140-WAERS&,,&RF140-GSALDF&
[/code]
And the custom form has the following code:
[code]
/E 520
/* - Line items heading -
AS
UL &uline(71)&
T1 <k>Date,,Invoice. No.,,Text,,,,Amount (NZ$)</>
UL &uline(71)&
/E 521
/* - Line items heading -
T1 &BKPF-BLDAT&,,&BSEG-BELNR&,,&BSEG-SGTXT& ,,,,&BSEG-WRBTR&
T1 ,,&RF140-VTEXT',,&RF140-MSATZ&%,,,,&RF140-MWSHB&'&
T1 ,,,,,,,,&uline(20)&
T1 ,,,,,,,,&RF140-GSALDF&[
[/code]

Similar Messages

  • Certificate of Origin with multiple line items in sapscript - Urgent Please

    Hi Everyone,
    Can you please help me with this issue in SAPSCRIPT.
    This is for billing document with multiple items with each line item with different country of origin.Right now the form is printing only one country of origin even if it has 3 line items each with different country.It's getting first line item's country and printing......but it should diplay each country with comma separated... But in debug it is showing all 3 different countries but in print it is printing only first country of origin.
       I have given text element as &VBDKR-TEXT& in form.
    In ABAP program I am getting country of origin like this,
    CLEAR : V_T005,VBRP , MARC  .
      LOOP AT TVBDPR.
      SELECT SINGLE * FROM VBRP
        WHERE VBELN = VBDKR-VBELN AND POSNR = TVBDPR-POSNR .
    begin of addiiton for ppr 13661
      CLEAR MCH1.
    SELECT SINGLE HERKL FROM MCH1 INTO MCH1-HERKL WHERE MATNR = VBRP-MATNR
                                           AND CHARG = VBdpR-CHARG.
      IF MCH1-HERKL NE ' '.
        CLEAR MARC-HERKL.
        MARC-HERKL = MCH1-HERKL.
      ELSE.
        NAME = VBDKR-VBELN.
          PERFORM HEADER_TEXT1 USING 'VBBK' 'Z065' NAME SY-LANGU.
        IF SY-SUBRC EQ 0.
          READ TABLE TEXT_LINES INDEX 1 .
          IF SY-SUBRC EQ 0.
            VBDKR-TEXT = TEXT_LINES-TDLINE.
          ENDIF.
        ELSE.
          SELECT SINGLE * FROM MARC WHERE MATNR = VBRP-MATNR
                                    AND   WERKS = VBRP-WERKS.
        ENDIF.                                                  "ppr 13661
      ENDIF.                               "PPR 13661 ADD
      CLEAR *T005T.
    data:SEP(3) VALUE ' , '.
    DATA: BEGIN OF ITAB OCCURS 100,
           LANDX LIKE VBDKR-TEXT,
          END OF ITAB.
    clear ITAB.
      SELECT  LANDX FROM T005T INTO table itab WHERE SPRAS = SY-LANGU  AND
    LAND1 = MARC-HERKL.
    LOOP AT itab.
    VBDKR-TEXT = ITAB-LANDX.
    *MOVE VBDKR-TEXT TO ZLAND.
    AT NEW LANDX.
       concatenate ITAB-LANDX sep into VBDKR-TEXT.
    ENDAT.
    modify ITAB.
    VBDKR-TEXT = ITAB-LANDX.
    ENDLOOP.
    endloop.
    Thanks in advance.

    Hi
    It depends on the size of the main in the page, you can set the high of main in order to print max a certain number of rows (so items).
    In this way you don't need the abap control, but the system automatically will print the first page with 15 row and the next with 25

  • How to get the Delivery date in PO line Item in SAPScript

    Hi Gurus,
    I am working on PO Script (MEDRUCK). I copied the Standard to a Z form. ZMM_MEDRUCK, Now I need to print the the Header text at the end of MAIN window.  I put Iem number along with the other line Item informmation like stanadrd PO Script MEDRUCK. I also want to show the delivey date with line Item, so Itried to use EKET-EINDT but it is returning the delivery date of last line item, means while printing the first line and other information it is showing the delivery date of the last line item, I tried with the  PEKPO-EINDT it is also not working.
    Can any body suggest me how i can get the delivery date for the respective line Item  ?
    Regards
    Sony

    actually your are picking up the correct data from Table EKET (EKET-EINDT) but your are printing that in item data loop for EKET might have already executed in your script and the header of that internal table consist the last entry of the table so for that. Fetch the delivery date explicite from the Table EKET when your in item level processing and print that.
    For Example u can use this code.
    To print you have write the this code in Script item level printing window "MAIN" window
    Following perform is called to get the line item delivery date in PO
    {/: PERFORM GET_DEL_DATE IN PROGRAM ZPerform_prog
    /: USING &EKPO-EBELN&
    /: USING &EKPO-EBELP&
    /: CHANGING &DEL_DATE&
    /: ENDPERFORM}
    {* Dellivery date &DEL_DATE& }
    write the below code in the Z program "ZPerform_prog"
    { FORM get_del_date  TABLES in_par STRUCTURE itcsy
                             out_par STRUCTURE itcsy.
      READ TABLE in_par WITH KEY 'EKPO-EBELN'.
      CHECK sy-subrc = 0.
      $_po_no = in_par-value.
      READ TABLE in_par WITH KEY 'EKPO-EBELP'.
      CHECK sy-subrc = 0.
      $_po_line = in_par-value.
      SELECT *
      FROM eket UP TO 1 ROWS WHERE ebeln EQ $_po_no AND ebelp EQ $_po_line.
        $_del_date = eket-eindt.
        CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
          EXPORTING
            date_internal            = eket-eindt
          IMPORTING
            date_external            = $_del_date
          EXCEPTIONS
            date_internal_is_invalid = 1
            OTHERS                   = 2.
        READ TABLE out_par WITH KEY 'DEL_DATE'.
        CHECK sy-subrc EQ 0.
        out_par-value = $_del_date.
        MODIFY out_par
                    INDEX sy-tabix.
        CLEAR : $_po_no , $_po_line ,$_del_date.
      ENDSELECT.
    ENDFORM.                    "GET_DEL_DATE }

  • Sapscript - output multiple line items

    Hello,
    I am creating a sapscript/ print program (OPEN_FORM, CLOSE_FORM) for the print output of our customer barcode labels for deliveries.
    Now if I trigger the print output (output type) of a delivery with 2 line items, SAP prints out 2 barcode labels.
    But I need information from both line items (for example both quantities) on one single label and I also need only one label to be printed out per delivery, regardless how many line items it has.
    How can I set that up?
    Thanks
    Anne

    Hello,
    Each OPEN_FORM/CLOSE_FORM will create another label. You need to have your loop inside the OPEN/CLOSE printing to a text element in the MAIN window. If there are enough lines you'll roll over into another label.
    Regards,
    Michael

  • Sapscript help -displaying line items in the table

    Hi folks,
    Can anyone please help me in a way of displaying the line items at the right place in the table fields?I have been playing with the tabs to space it for quite sometime. I tried everypossible combination, but does not work. Tring to figure out have not succeeded yet.
    the line items in some lines displaying right, but if the first name or the last name is long, either pushes  forward the subsequesnt data or if the length is small, it pulls the data inside.
    I do not know how to fix this.
    Here are the 4 elements I tried to display  as line items
    BOX XPOS 0 MM YPOS 0 MM WIDTH 10 MM HEIGHT 100 MM FRAME 10 TW
    BOX XPOS 10 MM YPOS 0 MM WIDTH 50 MM HEIGHT 100 MM FRAME 10 TW
    BOX XPOS 60 MM  YPOS 0 MM WIDTH 50 MM HEIGHT 100 MM FRAME 10 TW
    BOX XPOS 110 MM  YPOS 0 MM WIDTH 28 MM HEIGHT 100 MM FRAME 10 TW
    &OUT-SLNO&,,&OUT-EFNAME&,,,,,,&OUT-ELNAME&,,,,,,&OUT-EDOB&
    paragraph format
    tab1: 15 MM LEFT
    tab2: 22MM LEFT
    tab3: 24 MM LEFT
    tab4: 28 MM LEFT
    Any help is widely appreciated,
    Thanks,
    Sk

    If it is a form to be newly developed, it is better to go in for Smartform development since smartforms will automatically handle this problem.
    If you still want to continue using Scripts try to use
    /:  YORGIN
    or
    /: XORIGIN to adjust the height of the Box, if needed.
    More Details : http://help.sap.com/saphelp_47x200/helpdata/en/d1/803293454211d189710000e8322d00/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802edf454211d189710000e8322d00/frameset.htm
    For the problem regarding length of the names, try to split the name and show it on two lines
    eg., wrk_name+0(20)   on the first line
    and  wrk_name+20(20) on the second line
    Regards,
    Anish Thomas

  • How to draw a box before Line Item in the Main Window  In SapScript

    Hi guys,
    I am trying to draw a box before Line items to be printed but it overwriting the Line Item can anyone help me in this.
    Thanks,
    Ramesh

    Hi ramesh,
    check this:
    /E   TOP
       plant,,status,,GROUP,,Profit,,Min.Size,,Max.Size
    /:   BOX FRAME 10 TW
    /:   BOX YPOS 2 CH HEIGHT 0 CM FRAME 10 TW
    /*   BOX XPOS 15 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 28 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 35 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 42 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 55 CH WIDTH 0 CM FRAME 10 TW
    /E   NEW
       &IT_SCRIPT-pstat(C)&,,&IT_SCRIPT-werks(C)&,,
    =    &IT_SCRIPT-EKGRP(C)&,,&IT_SCRIPT-PRCTR(C)&,,
    =    &IT_SCRIPT-MINLS(C)&,,&IT_SCRIPT-MAXLS(C)&
    /:   BOX FRAME 10 TW
    /:   BOX YPOS 2 CH HEIGHT 0 CM FRAME 10 TW
    /:   BOX XPOS 15 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 28 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 35 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 42 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 55 CH WIDTH 0 CM FRAME 10 TW
    the corresponding code in abap editor:
    CALL FUNCTION 'OPEN_FORM'
      EXPORTING
       APPLICATION                       = 'TX'
       ARCHIVE_INDEX                     =
       ARCHIVE_PARAMS                    =
       DEVICE                            = 'PRINTER'
       DIALOG                            = 'X'
        FORM                              = 'ZFINAL_13688'
        LANGUAGE                          = SY-LANGU
      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                        = 'TOP'
                        FUNCTION                       = 'SET'
                          TYPE                           = 'TOP'
                          WINDOW                         = 'MAIN'
                        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.
    LOOP AT IT_SCRIPT.
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'NEW'
        FUNCTION                       = 'SET'
         TYPE                           = 'BODY'
         WINDOW                         = 'MAIN'
       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.
    regards,
    keerthi.

  • [Urgent] How to print Line items Twice in Check Printing ??

    Hi <b>Experts</b>,
    We have got a requirement of printing the vendor invoice info(Line Items) above and below the actual check.
    Eg.
    Page 1
    1-8 Line Items
    Voided Check
    <b>1-8 Line Items</b>
    Page 2
    9-16 Line Items
    Voided Check
    <b>9-16 Line Items</b>
    Page 3 ..... (last Page)
    17-20 Line Items
    Actual Check
    <b>17-20 Line Items</b>
    Now, All the things are printing fine except dual printing of the Line items at the below of Check.
    Please help me..... i am using Check print program <b>RFFOUS_C</b>.
    If anyone can has done something like this before than please send me the code for it.
    If someone requires more clarification, please ask me.
    Regards,
    <b>Abhishek</b>

    Hi Abhishek,
    we have done check printing here. but can u pl tell me why is the line item required to be printed below the check also??
    u must have observed that in the check sapscript ( F110_PRENUM_CHCK), the main window is situated above the check window.. n the line items are coming within the main window...since the line items are dynamic data( not fixed), u have to create a window below the check n that has to be a MAIN window again for it to display multiple data.. so wen ur last page is getting called ( u need to find that out that wen is the last page getting called ), u can insert a write_form for this new main window along with the other write_form( for the earlier main window).
    it can get very complex though as i dont know if this will certainly work...
    is the requirement reaaly to print the line items below the check or anything else will do?? as it wud greatly reduce ur headache...

  • Line Item Not dispaying in Payment Advice standard report

    Hi Experts,
    I have cleared line items of a vendor by making payment through F-53 and subsequently generated the Print Form spoon request through FBZ5. But in the print, line items (cleared Items) doesn't display in Payment advice report. But for the Fiscal Year 2009 line items (Cleared item) was displaying in the Payment Advice report which is now not displaying.Since it is a standard report no changes made. So please suggest how to achieve it.
    Thanks in Advance,
    Arabinda

    Hello,
    In tr. F-53 you post a payment document,
    but to print a check you need to use some check printing program.
    SAP-delivered program is RFFOUS_C and it processes only
    one bank line per payment document.
    Please check the following general information:
    The standard form (of the print program RFFOUS_C) prints the invoice
    items followed by the check.  If the item details overflow to the next
    page, then the first check (eg cheque no. 1) will be voided and you'll
    get the valid cheque on second page (eg cheque no. 2). This is standard
    functionality.
    Also I would request you to recheck your customising in FBZP i.e.
        -> Click on the 'Payment methods in company code' button
        -> Double click on the appropriate 'Pymt meth.'
           -> Click on the 'Pyt adv. ctrl' button
              ¦ Note to payee lines on the form  /               ¦
              ¦                                                  ¦
              ¦ O  restricted to                       98 Rows   ¦
              ¦ O  None                                          ¦
              ¦ O  as many as req                                ¦
              ¦__________________________________________________¦
    - The first option will restrict the number of lines on the form to a
    value from 1 to a maximum of 98.
    - The second option will restrict the number of lines on the form to
    zero.
    - The third option option will not restrict the number of lines on the
    form.
    You may test in the system which among the three options will suit your
    needs. There is a documentation available at the side of each button.
    Also please check whether the problem happens with the standard SAP
    program. You may wish to review the documentation for RFFOUS_C via
    transaction SE38 -> Enter program name -> Select 'Documentation' radio
    button -> Display -> scroll to 'Setting up and changing the SAPscript
    forms (layout sets)'.
    Also you can refer to the parameter `No form summary section' in the
    variant of RFFOUS_C. By setting this indicator, you can prevent the form
    summary section from being printed hence the overflow is avoided and
    thus eliminates the voided check issue. Please refer to F1 Help of this
    field for further information.
    Also please refer to the F1 help on the indicator "Indicator: Do not
    Void any Checks" in the selection screen of payment program RFFOUS_C.
    I hope this helps.
    BR,
    Raquel

  • How to print multiple items in SAPScripts

    Hi gurus,
    I have a list of items to print out in SAPScript but I can implement it. I've searched this forum for over a day and I can't find the correct answer. I post my code here. Hope you can help me. Thanks in advance.
    __P/S:__ I found that someone here solved this by using index. Can you tell me how to implement it?
    DATA: BEGIN OF ITAB OCCURS 0,
           Elements here
          END OF ITAB.
    DATA: BEGIN OF XTAB OCCURS 0,
           Elements here
          END OF XTAB.
    DATA: WA_XTAB LIKE XTAB.
    DATA: ZOPTIONS LIKE ITCPO OCCURS 0 WITH HEADER LINE.
    DATA: ZPAGE TYPE I.
    START-OF-SELECTION.
      PERFORM PREPARE.
      PERFORM FORM_OPEN.
      PERFORM FORM_WRITE.
      PERFORM FORM_CLOSE.
    FORM PREPARE.
    Add data to itab & xtab.
    ENDFORM.
    FORM FORM_OPEN.
      CLEAR : ZOPTIONS.
      ZOPTIONS-TDDEST    = 'LOCLSVC'.
    ST_OPTIONS-TDPRINTER =
      ZOPTIONS-TDPREVIEW = 'X'.
      ZOPTIONS-TDIMMED   = 'X'.
      ZOPTIONS-TDDELETE  = 'X'.
      ZOPTIONS-TDPROGRAM = SY-REPID.
      ZOPTIONS-TDTELELAND = 'VN'.
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
                DEVICE   = 'PRINTER'
                FORM     = 'ZF_CC_CI'
                LANGUAGE = SY-LANGU
                OPTIONS  = ZOPTIONS
           EXCEPTIONS
                CANCELED = 1
                DEVICE   = 2
                FORM     = 3
                OPTIONS  = 4
                UNCLOSED = 5.
      IF SY-SUBRC <> 0.
        MESSAGE E001 WITH 'Output was cancelled'
                          'by the user.'.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " FORM_OPEN
    FORM FORM_WRITE.
      CLEAR ZPAGE.
      LOOP AT ITAB.
        ZPAGE = ZPAGE + 1.
        PERFORM FORM_START.
        PERFORM WRITE_TITLE.
        PERFORM END_FORM.
      ENDLOOP.
    ENDFORM.
    FORM FORM_START.
      CALL FUNCTION 'START_FORM'
           EXPORTING
                FORM     = 'ZF_CC_CI'
                LANGUAGE = SY-LANGU
               PROGRAM  = SY-REPID
           EXCEPTIONS
                FORM     = 1
                FORMAT   = 2
                UNENDED  = 3
                UNOPENED = 4
                UNUSED   = 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.
    ENDFORM.
    FORM WRITE_TITLE.
    DATA: NCOUNT TYPE I,
          NI TYPE I.
        NI = 1.
        DESCRIBE TABLE XTAB LINES NCOUNT.
        DO NCOUNT TIMES.
          CLEAR WA_XTAB.
          READ TABLE XTAB INTO WA_XTAB INDEX NI .
          CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                ELEMENT = 'ITEM'
                TYPE    = 'BODY'
                WINDOW  = 'ITEM'.
          NI = NI + 1.
        ENDDO.
    ENDFORM.                    " WRITE_TITLE
    FORM END_FORM.
      CALL FUNCTION 'END_FORM'
           EXCEPTIONS
                UNOPENED                 = 1
                BAD_PAGEFORMAT_FOR_PRINT = 2
                SPOOL_ERROR              = 3
                OTHERS                   = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " END_FORM
    FORM FORM_CLOSE.
      CALL FUNCTION 'CLOSE_FORM'
           EXCEPTIONS
                UNOPENED                 = 1
                BAD_PAGEFORMAT_FOR_PRINT = 2
                SEND_ERROR               = 3
                OTHERS                   = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " FORM_CLOSE

    Hi Le Khanh Vinh ...
    In Script have You declare Two pages... Let say there is Two pages with names like ..FIRST and Second.
    In Standard Attributes of First Page give Next Page as Second.
    and for Second Page Standard Attributes give Next Page as Second only.. This will resolve for more Line Items thats it..
    Any Info need plz do reply ..
    Regards,
    Sg

  • Problem in printing multiple line items

    Hi,
       i designed a SAPSCRIPT FORM.When i execute the t-code MB01 by giving PO which has multiple line items ,  output type is invisible.
    But when i iexecute the t-code MB01 by giving PO which has single item , output type is visible and form is printing.
    Do i need to copy the print program and make changes in there or if i change elements in the form will that helps in printing multiple line items.
    thanks.

    HI,
    wat i understand is u r trying to loop at a variable window .but tht is not suggestable.
    write a loop in program lines. read the values in to different variables and the try printing them as text elements that will solve the problem.
    or else in other way use a template and that can also solve the problem.

  • For every line item, I want to write horizontal line.

    Hello experts,
    In the main window of my sapscript form, I am displaying multiple line items. What I want to do is write a horizontal line so what I did is this:
    /: SIZE WIDTH '75.0' CH HEIGHT '0' LN
    /: BOX FRAME 10 TW
    /: POSITION YORIGIN +1 LN
    I was having a problem yesterday as to why my &ULINE& is always shorter than the width of my MAIN window. So I am currently experimenting with BOX statement. But the problem is, I want to write it after every end of a line item. I placed the code above where the original &ULINE& was placed(inside the main window).
    Hope to hear from you guys. Thank you and have a nice day to all!

    Hi,
    Below is my code inside my MAIN window.
    MAIN
    /* Element /E set outside PROTECT statement
    Element POS_ZEILE
    /: PROTECT
    I1 ,,&MSEG-ZEILE&,,&MSEG-MATNR&,,&MSEG-ERFMG&,,&MSEG-ERFME&
    /: IF &MSEG-BWART& EQ 'Z75'
    =  ,,&MSEG-UMLGO&
    /: ELSE
    /:  IF &MSEG-BWART& NE '315'
    =  ,,&MSEG-LGORT&
    /:  ENDIF
    /: ENDIF
    /: IF NOT &MSEG-BWART& EQ '631'
    =  ,,&MSEG-CHARG&
    /: ENDIF
    /: IF &MSEG-BWART& EQ '631'
    =  ,,&KNA1-NAME1&
    /: ENDIF
    /: IF &MSEG-BWART& NE '631'
    /: IF &MKPF-TCODE2& NE 'MB01' AND &MKPF-TCODE2& NE 'MIGO_GR'
    I1 ,,&MSEG-WEMPF&
    /: ELSE
    I1 ,,&MSEG-EBELN&
    /: ENDIF
    /: ENDIF
    I2 ,,&MABDR-MAKTX&
    /: PERFORM GET_RCV_LOC IN PROGRAM ZSR_GOODS_TRANSFER_SLIP
    /: USING &MSEG-EBELN&
    /: USING &MSEG-EBELP&
    /: CHANGING &WA_KOSTL&
    /: ENDPERFORM.
    /: IF &MKPF-TCODE2& EQ 'MB1A' OR &MKPF-TCODE2& EQ 'MB1C' OR &MKPF-TCODE2& EQ 'MIGO_GI'
    /:   IF &MSEG-GRUND& EQ ''
    /*     IF &MSEG-BWART& EQ 'Z29'
    /* ,,</><TX>&MSEG-SGTXT(15)&</>
    /*     ELSE.
    =  ,,&WA_KOSTL&
    /*     ENDIF.
    /:   ELSE.
    =  ,,&MSEG-GRUND&
    /:   ENDIF
    /: ELSEIF &MKPF-TCODE2& EQ 'MB01' AND &V_REVRS& EQ 'Y'
    /:   IF &MSEG-GRUND& EQ ''
    =  ,,&WA_KOSTL&
    /:   ELSE
    =  ,,&MSEG-GRUND&
    /:   ENDIF
    /: ELSEIF &MKPF-TCODE2& EQ 'MIGO_GR' AND &V_REVRS& EQ 'Y'
    /:   IF &MSEG-GRUND& EQ ''
    =  ,,&WA_KOSTL&
    /:   ELSE
    =  ,,&MSEG-GRUND&
    /:   ENDIF
    /: ELSEIF &MKPF-TCODE2& EQ 'MB1B' AND &MSEG-BWART& NE '315'
    /:  IF &MSEG-BWART& EQ 'Z75'
    =  ,,&MSEG-LGORT&
    /:  ELSE
    /:   IF &MSEG-UMLGO& EQ ''
    =  ,,&WA_KOSTL&
    /:   ELSE
    =  ,,&MSEG-UMLGO&
    /:   ENDIF
    /:  ENDIF
    /: ELSEIF &MKPF-TCODE2& EQ 'MB1B' AND &MSEG-BWART& EQ '315'
    /:   IF &MSEG-LGORT& EQ ''
    =  ,,&WA_KOSTL&
    /:   ELSE
    =  ,,&MSEG-LGORT&
    /:   ENDIF
    /: ENDIF
    /: IF &MKPF-TCODE2& EQ 'MB1A'  OR &MKPF-TCODE2& EQ 'MIGO_GI'
    /:   IF &MSEG-KOSTL& EQ ''
    =  ,,&MSEG-EBELN&
    /:   ELSE
    /:    IF &MSEG-BWART& EQ 'Z29'
    =  ,,<TX>&MSEG-SGTXT(15)&</>
    /:     ELSE.
    =  ,,&MSEG-KOSTL&
    /:    ENDIF.
    /:   ENDIF
    /: ELSEIF &MKPF-TCODE2& EQ 'MB1B' OR &MKPF-TCODE2& EQ 'MB1C' OR &MKPF-TCODE2& EQ 'MB01'  OR &MKPF-TCODE2& EQ 'MIGO_GR'
    /:  IF &MSEG-BWART& EQ '323' OR &MSEG-BWART& EQ 'Z73'
    =  ,,&MSEG-GRUND&
    /:  ELSEIF &MSEG-BWART& EQ 'Z75'
    =  ,,&MSEG-GRUND&
    /:  ELSE
    /:    IF &MSEG-UMCHA& EQ ''
    =  ,,&MSEG-EBELN(10)&
    /:    ELSE
    =  ,,&MSEG-UMCHA(10)&
    /:    ENDIF
    /:  ENDIF
    /: ENDIF
    =  ,,&MSEG-KUNNR&
    /: IF &MSEG-BWART& EQ '601'
    /  ,,   &V_BEZEI&
    /: IF &V_MATGRP& EQ 'X'
    /: ENDIF
    /: ENDIF
    /: ENDPROTECT
    /: IF &V_SERIAL_NO& = 'N'
    /: SIZE WIDTH '75.0' CH HEIGHT '0' LN
    /: BOX FRAME 10 TW
    /: POSITION YORIGIN +1 LN     
    /: ENDIF
    Element SERNUM
    /: PROTECT
    /: IF &V_SERIAL_NO& = 'Y'
    /: IF &V_FIRST_NUM& = 'Y'
    /: IF &SERIAL_TAB-END& EQ &SPACE&
    SI ,,Serial Numbers:,,&SERIAL_TAB-START&
    /: ELSE
    SI ,,Serial Numbers:,,&SERIAL_TAB-START&,,-,,&SERIAL_TAB-END&
    /: ENDIF
    /: ELSEIF &SERIAL_TAB-END& EQ &SPACE&
    SI ,,,,&SERIAL_TAB-START&
    /: ELSE
    SI ,,,,&SERIAL_TAB-START&,,-,,&SERIAL_TAB-END&
    /: ENDIF
    /: ENDIF
    /: IF &V_FINISH& EQ 'Y'
    /: SIZE WIDTH '75.0' CH HEIGHT '0' LN
    /: BOX FRAME 10 TW
    /: POSITION YORIGIN +1 LN
    /: ENDIF
    /: ENDPROTECT

  • Different shipping address for different PO line items

    Dear all
             Kindly let me know if any option is available for getting differenent delivery address for line item in one single PO.
    regards
    M.Chandra mohan

    this is possible for sure.
    Each item in a PO has a tab called delivery adress.
    If your SapScripter has not done something odd, then this adresses are printed below each item in the PO form.

  • Line items not printed in check printing payment advice

    Hi, this is the first time i am implementing check printing module so need some help.
    I have used standard print program RFFOUS_C and sapscript form F110_PRENUM_CHEK
    when I create an invoice from FB60 and make payments through F-58, on printing it prints the check properly but no line items are displayed.
    Please tell me a step by step procedure on how to print the payment advice,i.e, the line items. Is it already in the standard program or do i need to code it. I am interested in the learning also, if anyone can give me details it would be helpful fr me to implement it easily understanding what I am actually doing...
    Any help soon is appreciated .

    Already everything(line items) exists in the program, if you want to add additional fileds to be displayed that are not existing in your program then you need to sub-routines instead of modifying the standard print program.
    Now, you say that your line items are not displayed in your output. For check printing there is some configurations and settings to be done by your functional consultant.. I guess some configuration is missing in your case, that lack the display of line items...check with your functional team on this....(they have to set the lines)
    Note: For more info on config check FBZP where form config will be done basing on company code.
    Regards,
    Sairam

  • Displaying line items in main window

    Hi
    I want to create a sapscript from scratch. How do one display multiple line items in a one window.
    Do i loop the internal table in the print program and write to scapscript?

    Hi,
    Make a Main window in sapscript.
    Make a text element say ITEM.
    and then give the name of ur variable to be printed as &<variable>&
    Now in Program side make a new prog...
    get the lineitems in itab
    open_form....
    loop across the itab
    write_form
    endloop
    close_form
    Pls ping me if unclear... i think it helps...
    Regards,
    Abhishek

  • RE: prob with line item text in PO print form

    Hi All,
    Problem with SAPscript
    I have A problem with PO pronting form.  In the PO craetion(me23n), IF we mention certain text in last line item the PO printing form is behaving uncertanly.
    If the text limit to a particular line is mentioned , then PO printing in only first  Page and otherpage is not printing where further data is supposed to print.
    If we exceed the limt , its again printing correctly in 2 pages with all the data. If we decrese the limit aslo printing fine.
    My problem  is , I could not understand exactly where the problem is coming. while debugging Befor the text apperas in form I have an inlcue like this form.
    INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &EKKO-SPRAS& PARAGRAPH IX.
    IS the prob exist here?
    Please help me out?
    Edited by: shruthi puttoju on Jul 24, 2009 9:01 AM

    Hi,
         Header Long texts will be different from Line items long text, i think you are passing the long text for line items, so check how the long text is coming in debugger of the sapscript for each line item.
    Look at the Text Element ITEM_TEXT in the Main window of the sapscript. It has the INCLUDE which holds the text you are talking.
    INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &
    Regards
    Bala Krishna

Maybe you are looking for

  • Is there a way to delete all events with the same title (not added as reoccurring) without deleting one at a time?

    i currently have a calendar synced that has events scheduled in perpetuity, scheduled as individual events.  I would like to delete all events with the same title.  I do not want to delete the entire calendar nor do I want to go into every event and

  • Lead Reject Reason Code

    In the out of the box lead process in CRM OnDemand, when you click the reject lead button you are taken to an unconfigurable form and asked to enter a lead reject reason, when you click save this information is then appended to the end of the comment

  • Photoshop and Bridge rotating images automatically, unwanted behavior

    We have a large batch of identically sized images (although obviously some are portrait and some landscape) and when previewed in bridge or opened in photoshop, the images that are portrait are being automatically rotated 90 degrees counter-clockwise

  • Can't open scarlett plug-in suit in logic

    I jost bought a Focusrite Scarlett 2i2 . It came with a "Scarlett plug-in suit". The 2i2 works as it should, but when i install the plug-in suit i can't find it in Logic pro. The user guide says that in order to activate the plug-ins i should open on

  • License compliant and purchase

    Hi, i was testing the product for about 3 weeks and i'm having some problems with de license and software module. After i scan the network, it detects 40 Microsoft Office 2010 Home and Business installations, thats ok. then it shows that Microsoft Of