PO print line items

hie guys
i have copied standard PO script MEDRUCK into custom script and made my adjustments..however the form is failing to activate issuing the error that A text element in window MAIN has no name
how can i resolve this?

Hi
I think in the adjustments u made, U might have made some mistakes.
Just check with the standard script if the text element names are intact.
Regards,
Vishwa.

Similar Messages

  • How to print line item 2times in two different main window in Sap Script

    Hi,
    I am designing check printing form using Sap script. I need to print line items 2times in different 2main window.can yu pls explain  how print like this.
    JK

    i cud not get ur query..pls elaborate

  • Printing line items in next line smartforms

    how to print line item description in next line...
    suppose
    i have line item description as
    "this is description of line item"
    then i need to print as
    "this is"
    "description of line item"
    in two lines......
                so that no trunkation takes place please reply me ....

    Use offset
    v_text(20)
    in the second line use
    v_text+20(40)
    If this does not work
    then declare two more fileds
    and write the code
    v_text1 =  v_text(20)
    v_text2 = v_text+20(40)
    and print the new fields
    Reward points if useful,
    Regards,
    Nageswar

  • To print line item number in workflow message

    Hi Experts ,
    I want to print line item numbers of a sales order in a single workflow message .
    Can this be achieved ?
    I am generating WORKFLOW item , for a sales order , and want certain line item numbers to appear on the WORKFLOW message .
    Something like Sales Order XXXX  has line item 20  30 50 .
    Regards,
    Sunitha

    1. Enhance appropriate custom BOR Object.
    2. Create one Attribute which will gives you String output - Write program to this attribute to fill the string will all relevant texts for example : Line Items 10, 30, 54, 89.
    3.  Place this string in your work item description. So that your work item / email will carry this string under certain conditions.
    you many need to handled exception.
    Example -
    Dear User.
    Please Check the Sales Order 23456. The below line items went for Delivery block.
    Line Items 10, 30, 54, 89.
    Regards,
    Admin
    All the best,
    Vamsi

  • Printing Line Items in Script without using driver program

    How to print the line items of a internal table in sap script without using driver program? I am not supposed to edit anything in the driver program. Pls help me to solve this problem...

    Hi,
    You can try by creating a new driver program and a new FORM ENDFORM inside that for this purpose.
    Regards,
    Gaurav

  • [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...

  • Print Line items twice in Check F110_Prenum

    Hi Experts,
    I need to print the Line items of the Payemnt advice, twice on the same page...
    Type   Window Content
    [Main] 1-10 Lines
    [Var]  Voided/Actual Check
    [Var]  <b>1-10 Lines</b> (Not printing)
    [Main] 11-20 Lines
    [Var]  Voided/Actual Check
    [Var]  <b>11-20 Lines</b>(Not printing)...........
    and so on....
    The problem is only that i am not able to print the lower (duplicate)line items...
    Pls suggest some technique....
    I have tried modifying the RFFOUS_C also... but the values  can be seen in debug mode only (not on Print Preview)
    I have already written this problem, sut still havent recieved any legible solution... Is this problem really so tough.. i wonder...
    Pls ask me if u need some more details....
    Thanks all in advance... all the helpful posts would be awarded points accordingly..
    Regards,
    Abhishek

    Yup ! There is a blank space at bottom which needs to be filled up with the content of main window on the same page...
    The last window name is 'FILE' and in this window we have a element called 'COPY'. Now what i did is i modified RFFOUS_C        to get all the itemlines in a particular itab say I_REGUP. In the Prog itself.. after the formular prints all the check contents and the loop for all the elements in main is done, i copy the REGUP to my I_REGUP.
    Now after this i Open a new form as
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
                ARCHIVE_INDEX  = TOA_DARA
                ARCHIVE_PARAMS = ARC_PARAMS
                FORM           = T042E-ZFORN
                DEVICE         = 'PRINTER'
                LANGUAGE       = T001-SPRAS
                OPTIONS        = ITCPO
                DIALOG         = FLG_DIALOG
           IMPORTING
                RESULT         = ITCPP
           EXCEPTIONS
                FORM           = 1.
      IF SY-SUBRC EQ 1.              "abend:
        IF SY-BATCH EQ SPACE.        "form is not active
          MESSAGE A069 WITH T042E-ZFORN.
        ELSE.
          MESSAGE S069 WITH T042E-ZFORN.
          MESSAGE S094.
          STOP.
        ENDIF.
      ENDIF.
      LOOP AT I_REGUP.
        W_REGUP = I_REGUP.
        CALL FUNCTION 'WRITE_FORM'
             EXPORTING
                  WINDOW   = 'FILE'
                  ELEMENT  = 'COPY'
                  FUNCTION = 'APPEND'
             EXCEPTIONS
                  WINDOW   = 1
                  ELEMENT  = 2.
      ENDLOOP.
      CALL FUNCTION 'CLOSE_FORM'.
    After Executing what i find is, when i activate the debugger for the layout form... i can see all the values coming at that instance.. but id doent appear in the print preview...
    Hope u mast have got the scenario... else i can mail u the code copy and print preview for ur better view...
    Thanks for ur help !!
    Regards,
    Abhishek

  • Unable to print line item 1 and line item 2 into one box iin SMARTFORMS

    helo,
    i have printed in the folowing  way.
    but i want these two things to come ion one box....like page protection..
    <b>Item Details
    Item   material     term     qty    uom    unit price    total</b>
    1        ..................................................................
    2        ..................................................................
    <b>Item Quality Specifications
    characteristic    basis    limit    oper    value    base unit    per </b>
    a                        ..............................................................
    b                        ............................................................
    Till the above part i have printed.
    now i want to make those two items together in a group.
    i have tried page protection but i dint get .
    those two should together with a rectangular box around it.
    if the those two will not fit in the box then it should go to second page.
    kindly help me .
    Regards,
    deepthi.

    Hi
    Which SRM version are you using ?
    Please go through this ->
    If you are using extended classic scenario you can simply delete the line items in the PO within SRM. This will replicate the appropriate changes in the backend.
    You won't be able to change the PO in the backend as this is standard functionality.
    You can also archive SRM PO incase you don't want to delete the same
    PO Archiving
    Once the purchase order is ordered and issued, it is a legal document between your company and the vendor. Only PO line items can be deleted and you can not delete PO header.
    Deleting line item of PO is not enough. Make sure that PR or SC history does not contain any follow on document else system will interpret this a close PR or SC.
    Because the PO was already printed or output exist... You cannot delete PO header.
    Once the PO has been issued to vendor in any form, deletion is not possible at the header level, only possibility is deleting line items of the PO (deletion indicator marked for all the line items of PO). Only when the PO is rejected by the approver (in case any, which will be in the 'release rejected' status) or in held state (before issued to vendor), PO can be deleted at the header level, as the data still exists in SRM and not get transferred to R3 backend. If you want to forcibly delete the PO at the header level, flag DOC_CLOSED field in the table BBP_PDHGP (header tabe) through BBP_PD for the respective PO.
    Try using the Function Modules "BBP_PD_PO_DB_DELETE".
    BP_PD_PO_ITEM_DELETE_LOCAL
    Some other relevant Function modules ->
    BP_PD_PO_DB_DELETE_MULTI
    BP_PD_PO_ITEM_DELETE_LOCAL
    BBP_BS_POD : Spooler, delete PO
    SPOOL_PO_DELETE :Spooler function to delete a po in core
    SPOOL_PO_DELETE_DO :Spooler function to delete a po in core
    Related links ->
    Re: Cannot delete Limit Shopping Cart line item
    Re: How to delete a PO in SRM
    Re: SRM PO Deletion
    Re: Delete item in the PO
    Do let me know. Hope this will help.
    Regards
    - Atul

  • Print line items on next page if does not fir onto current page

    Hello Experts,
    I have a query related with Smartform.
    For every Line item, I have 4 lines. Means, if there are 4 line itmes in Internal table then it means, on form 16 lines should be printed.
    My Requirement - If any of the Line item does not fin onto a single page then shift the whole line item onto next page. Means, If Line item 1 and 2 are printing on 1st page completely, but line item 3 is not able to print completely on 1st page then shift all the 4 lines of line item 3 onto next page.
    I tried - Put the main table of main area in a Folder and checked the PAGE PROTECTION of that folder. And in the Foder itself, use a command with checked GO TO NEW PAGE. But it is not printing. Form goes into shortdump.
    Please help me to resolve this issue.
    Regards
    Kuldeep M.

    Hi,
    U try to fix the no of lines per page. If the no of lines in ur table are more than the lines per page then u call the COMMAND 'Go to New Page' and give the Page name.
    Eg:
    data : lv_lines TYPE i,
              lv_lines_per_page TYPE i value 12.    (Try to design the Window height to fit 12 lines or ur wish)
              lv_count TYPE i.
    describe table itab lines lv_lines.
    Now, u loop the itab table and put a condition in the LOOP:
    LOOP AT itab.
      lv_count = lv_count + 1.
    IF lv_count GT lv_lines_per_page.
       clear lv_count.
       create command 'Go to New Page'.             --->In COMMAND put condition lv_count GT 12
    endif.
    ENDLOOP.
    Hope it helps!!
    Rgds,
    Pavan

  • PO printing, line item duplication

    Dear Gurus,
    We have created a PO with reference to a PR, while prining the PO, one of the line item is being duplicated, but the value of this line item is not considered in the total value of the PO. It is a Standard PO.
    Kindly advice how to rectify this error.
    Regards,
    LUX

    Hi,
    I found the reason for this behaviour, the Order price unit is different from the base unit of measure.
    LUX

  • Problem in line items(text elements printing) in smartform

    Hi all
    Here iam printing line item data in invoice form
    around 7 fields(text elements) iam having  the fileds are displaying one by one
    I need to diplay all 7 fields one after another with some gaps in the same line
    can u please let me know how to do it with text elements
    thank you

    Hi,
      create a table. In once line type(Line type 1)  create 7 different cells (Columns) for a single row.
    For eg:
    Line typ1 :  cell1 cell2 cell3 cell4 cell5 cell6 cell 7.
    cell1 : &mara-matnr&
    cell2 : &mara-ersda&.
    like soon in 7 different cells.
    Br,
    Laxmi.

  • Line items are printing different page

    hi all,
    I neet to print line items in the same page.
    but when i execute my pogram it is giving 6 pages with one line item each page.
    how can we print 6 line items in same page if there is no space it must print in second page.
    Kind Regards,
    Kiran.

    Hi,
    You can specify, either in the style or in the form, that a particular paragraph should not be split in two by a page break. If this page protect attribute is set, then the complete paragraph is always printed on one page. This property applies only to that particular paragraph.
    This attribute is not intended to be used to protect all paragraphs against a page break. The point is that a page break is by its very nature a dynamic event and the exact point at which it occurs depends on the current state (length and contents) of the preceding text. It is also possible that you may want to protect only certain parts of a paragraph against a page break. One way to achieve this is to use the NEW-PAGE command immediately before the text concerned starts. Explicitly beginning a new page at this point should ensure that a further page break does not occur within the text. However, this technique is not change-friendly. For example, you format your text with the help of the NEW-PAGE command so that no page breaks occur where they should not. At a later time, you insert or delete some lines. These changes cause all the subsequent text to be moved relative to the printed page, and you must check each NEW-PAGE command you previously inserted to see if it is still in the correct place.
    To allow you to define the areas to be protected against a page break on an individual basis, SAPscript provides the PROTECT.. ENDPROTECT command pair. If you enclose the text to be protected in these commands, then SAPscript will ensure that each line of this text is printed together on the same page. If the complete text fits in the space remaining on the current page, then it is printed on this page just as it would be if no PROTECT command had been used. If, however, the remaining space is not sufficient for the text, then the PROTECT command has the same effect as a NEW-PAGE command and text is printed on a new page.
    Thus the PROTECT/ENDPROTECT commands may be regarded as a kind of conditional NEW-PAGE command, the condition being whether or not the lines enclosed between the two commands fit in the space remaining in the current main window.
    Syntax:
    /: PROTECT
    /: ENDPROTECT
    The text lines to be protected are enclosed between the two commands.
    An ENDPROTECT command without a preceding PROTECT command has no effect.
    If the terminating ENDPROTECT is missing, SAPscript assumes it at the end of the text.
    PROTECT.. ENDPROTECT command pairs cannot be nested. If a second PROTECT command occurs before the first one has been terminated by an ENDPROTECT, it is ignored.
    If the text enclosed by a PROTECT.. ENDPROTECT pair is itself too long for a single page, then a page break is generated immediately before the text and the text is printed in the normal way. It is then unavoidable that a page break will occur at some point within the text.
    Thnks and reward me with pts if useful.

  • Outgoing cash Payment line item account not printed

    Hi,
       In case any cash payment raised through outgoing payment, line item(account name, amount, etc..) table is printed. If check payment, we can get the print(Line item) out. If anybody knows the reason for not printing the table. please tell me.
    Thanx in advance,
    Suresh.

    Kevin,
            If it's one line, we can do as say, We have more than one line. we need repetative area.
    Scenario,
    Screen:    Outgoing Payment
    Select:       Account  ( not customer or not supplier)
    line table(Account) : Enter more than one line.
    Payment mode:  Cash.
    finally Check  the printout:   Line table which contains accounts are not coming in the printout.
    Created:  Own PLD.
    Suresh.

  • Regarding Line items printing

    Hello Experts,
                               I am developing a purchase requisition in that i am printing line items like
    material no, material code, quantity. while looping the item table, below every material code i need to
    display material text from a standard text object, text id  like
    10       material description       10000
              jkdhfjkdfghjkd
              jkxgdhvjkdhvjdkv
              nskdhvkldhvidskvkl
    20      material description       10000
               jsdgcjkdsgc
               sbdjkcbdsjcd
    but this material text has to extend till the end of the line,but  it is not extending because i created a
    text node under material description
    suggest any alternate method pls

    Hi,
    Create table with more than 3 or 4 lines ans for main window you have to use two lines. One is for item details and other one is for material text (This line should not have any coloumns). Then it should print till the end.
    Thanks,
    Pranav

  • 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

Maybe you are looking for