Line items separed line(Uline) in SAP Script

Dear Friends.
I want to print a separated line (Uline) in-between each line item and the line should not come when it is last line item of the page.
I am going to print in first page with 7 records and next all pages with 17 records.
here I have written it for first page which is working but how to do with rest of the pages???
Here I have taken a flag when the line item reach to 7th record, and i am using it in my form window as bellow:
/: IF $GV_FLAG& = 'X' AND &PAGE& = '1'
/: ELSE
UN &sy-uline(151)&
/: ENDIF
The same i want  for rest of the pages.....but the remaining pages will have 17 records per a page..
Could you pls suggest me on this...
Thanks,
Sridhar.

Hi Sridhar,
I am assuming that $GV_FLAG& is for 7 records, so take another falg like this for second page $GV_FLAG2& and count it for 17 records.
[code]/: IF $GV_FLAG& = 'X' AND &PAGE& = '1'
/: ELSE
UN &sy-uline(151)&
/: ENDIF
/: IF $GV_FLAG2& = 'X' AND &PAGE& <> '1'
/: ELSE
UN &sy-uline(151)&
/: ENDIF[/code]
Regards
Sudheer

Similar Messages

  • GL account with line items in line type 'S' document split?

    Hi Experts,
    We found in PCP0 there are payroll documents which has GL account with with line items in line type 'S' document split. Unlike other line items with line type 'blank' these line items cannot be opened and display the wage type details. How can we know from which wage type these line items were created?
    Regards,
    Allan

    These line items are caused by company transfer and they are cleared by themselves between companies.

  • Display Line Items - Define Line Layouts?

    I cannot understand what  Define Line Layouts means in SPRO.
    Financial Accounting -> General Ledger Accounting -> Line Items -> Display Line Items -> Define Line Layouts
    I can see that there is some Line Layout Variant (D0,D1D2...), with some Fields, but i cannot understand where this fields or Line Layout Variants are used, in what transactions i can see changes if a made some. This variant reflects line layouts when i post something (f-02, ,f-03, f-04, f-51...) or when i want to see account items or balances ???.

    Hi,
    You can use these line layouts in the display of line items in various transactions and you can default a particular line layout for a user master, so that by default the line items comes in that layout for that user.
    Go to FB00 > Doc Display tab and there you can assign the line layout
    And then when you see the doucment say in FB03, you will see the line items in that format.
    Regards,
    SDNer

  • CD line item separately in Customer Line item

    Dear Experts,
    My client requirement is Cash Discount line item can be separated for Customer Line Item.
    Standard setting:
    When customer pays the invoice and cash discount is there on invoice the entry will be as below in Standard SAP
    Bank Inco A/C Dr
    Cash Disc A/C Dr
       to Cust A/c
    Here when user opens up the FBL5N for the above customer, they don't see that how much exact payment amount has been received as this includes the CD amount as well.
    Client Requirement is
    Bank Inco A/C Dr
    to Cust A/c
    Cash Disc A/C Dr
    to Cust A/C
    Have tried OBXI, Net Document type (cash discount clearing A/C) but can not find the desired solution. Have also tried to search SCN & Google, still could not get any clue.
    Would you be needful to put some light on this scenario.
    Many Thanks
    Kind Regards
    pankaj

    Thanks Mr. Narasimhulu for your time and reply.
    We did have these two column in FBL5N and also we have created ZFBL5N which is generating Net amount field, still am thinking to generate a separate line item for Cash discount and only that line item credits separately in customer ledger.
    Can understand that CD is actually the substitute of Cash, as we are sacrificing our cash remittance for CD, still my client wants separate line item.
    Is there any way into SAP.
    Thanks for your help.
    Kind Regards

  • Accounts Payable Line Item Extraction to BW from SAP using Business Content

    Hi,
    I have to set up the AP Line Item extraction into BW using the Standard Business Content.
    Could someone please gide me through the process for doing it ( Step-by-Step if possible), both from the SAP R/3 side and the BW side.
    Any help deeply appreciated.
    Regards

    goto rsa5 in R/3  -- select 0FI_AP_4 and click install...if you goto RSA6 and see this datasource there then it means it is installed..
    now come to B/W ...goto source system...right click on source system and replicate datasource...
    on the left side you would..modeling...transport organizer etc... goto business content tab...
    goto grouping and it should be set at 'Only necessary objects'.
    click on object type on the left side...and it will see..goto Infocube ...select the one which i mentioned below..select it and drag to the right side..similarly do this for ODS, infosource, UR, TR...and click install you should be set...
    0FIAP_C03 - Infocube
    0FIAP_O03 - ODS
    0FI_AP_4 - Infosource
    update rules
    transfer rules...
    Please assign points if it was helpful

  • Some Line Items are missing in Standard SAP FI/CO Reports

    Dear All,
    while taking printout of SAP Standard FI/CO Reports some line items and total value are missing. E.g using TCODE FBL3N, it shows correct value after inserting selction inputs but when displaying it in spool request or taking print out it misses some line items and total value.
    Kindly help me in resolving the issue.
    Regards,
    Majid Khan

    Problem was caused by support pack SAPKB62063 and SAPKB62064.
    Apply OSS note 1100728 which was corrected in SAPKB62065.
    Giana

  • Multiple line item display for PAYMENT ADVISE form(script) using F110 tcode

    Dear All,
    I am currently working on PAYMENT ADVISE script ( form ) - for which i have copied the
    form F110_IN_AVIS to zform.
    I am executing the form for output through executing Tcode - F110.
    The output works for single line item entry of vendor line items - but doesnot support
    for muliple line items.
    I have checked the standard program - RFFOUS_C - which has include - RFFORI06 for remittance advice -which supports for single line item display.
    Kindly advise me for the soultion of the same.
    Regards
    HC

    Hi,
    Do you manage to fix it ?
    we experienced the same problems (mass printing smarforms F110), we would like to use one time F110, and generates all the spool, for all the line items.
    Thanks
    Any help would be grateful.
    Thomas

  • Mulitple line items for a contract in SAP

    Hello Experts,
    I am uploading a file which has the same contract number (EKKO-EBELN) for multiple records (line items). How to do BDC recording by looping thru the internal table. Right now, I am using the below code which takes only two records for the same contract and rejecting the remaining two records for the same contract. Can anyone help me to modify this code. The tcode is ME31K
    data: l_n type i.
    loop at gt_contract_temp.
      AT NEW ebeln.  
          CLEAR l_n.
    *start bdc recording
          PERFORM populatebdc USING:
          'X' 'SAPMM06E' '0200',
          ' ' 'BDC_CURSOR' 'RM06E-KZABS',
          ' ' 'BDC_OKCODE' '/00',
          ' ' 'EKKO-LIFNR'  l_lifnr,
          ' ' 'RM06E-EVART' p_bsart,
          ' ' 'RM06E-VEDAT' l_bedat,
          ' ' 'RM06E-EVRTN' gt_contract_temp-ebeln,
          ' ' 'EKKO-EKORG'  gt_contract_temp-ekorg,
          ' ' 'ekko-ekgrp'  gt_contract_temp-ekgrp,
          ' ' 'RM06E-WERKS' gt_contract_temp-werks,
          ' ' 'rm06e-lgort' gt_contract_temp-lgort,
          ' ' 'RM06E-KZABS' 'X',
          'X' 'SAPMM06E' '0201',
          ' ' 'BDC_CURSOR' 'EKKO-INCO1',
          ' ' 'BDC_OKCODE' '/00',
          ' ' 'EKKO-EKGRP' gt_contract_temp-ekgrp,
          ' ' 'EKKO-PINCR' '10',
          ' ' 'EKKO-UPINC' '1',
          ' ' 'EKKO-KDATB' l_kdatb,
          ' ' 'EKKO-KDATE' l_kdate,
          ' ' 'EKKO-SPRAS' gt_contract_temp-spras,
          ' ' 'EKKO-KTWRT' gt_contract_temp-ktwrt,
          ' ' 'EKKO-WAERS' gt_contract_temp-waers.
          l_n = l_n + '01'.
    ENDAT.
        CLEAR: l_ematn, l_ktmng1, l_meins,
               l_netpr1, l_peinh, l_bprme,
               l_werks, l_lgort, l_evrtp.
        CONCATENATE 'RM06E-EVRTP' '(' l_n ')' INTO l_evrtp.
        CONCATENATE 'EKPO-EMATN' '(' l_n ')' INTO l_ematn.
        CONCATENATE 'EKPO-KTMNG' '(' l_n ')' INTO l_ktmng1.
        CONCATENATE 'EKPO-MEINS' '(' l_n ')' INTO l_meins.
        CONCATENATE 'EKPO-NETPR' '(' l_n ')' INTO l_netpr1.
        CONCATENATE 'EKPO-PEINH' '(' l_n ')' INTO l_peinh.
        CONCATENATE 'EKPO-BPRME' '(' l_n ')' INTO l_bprme.
        CONCATENATE 'EKPO-WERKS' '(' l_n ')' INTO l_werks.
        CONCATENATE 'EKPO-LGORT' '(' l_n ')' INTO l_lgort.
        PERFORM populatebdc USING:
         'X' 'SAPMM06E' '0220',
         ' ' 'BDC_CURSOR' l_evrtp,
         ' ' 'BDC_OKCODE' '/00',
         ' '  l_evrtp         gt_contract_temp-ebelp,
         ' '  l_ematn         gt_contract_temp-matnr,
         ' '  l_ktmng1        gt_contract_temp-ktmng,
         ' '  l_meins         gt_contract_temp-meins,
         ' '  l_netpr1         gt_contract_temp-netpr,
         ' '  l_peinh         gt_contract_temp-peinh,
         ' '  l_bprme         gt_contract_temp-bprme,
         ' '  l_werks         gt_contract_temp-werks,
         ' '  l_lgort         gt_contract_temp-lgort,
         'X' 'SAPLMEKO' '0501',
        ' ' 'BDC_CURSOR' 'T685-KSCHL(01)',
         ' ' 'BDC_OKCODE' '=PICK',
         'X' 'SAPMM06E' '0220',
         ' ' 'BDC_CURSOR' l_netpr1,
         ' ' 'BDC_OKCODE' '/00',
         ' '  l_netpr1      gt_contract_temp-netpr.
        l_n = l_n + '01'.
        AT END OF ebeln.
          PERFORM populatebdc USING:
             'X' 'SAPMM06E' '0220',
         ' ' 'BDC_OKCODE' '=BU'.
    *--Calling the transaction 'ME31K'
          CALL TRANSACTION 'ME31K' USING gt_custbdc MODE 'A' UPDATE 'S'
          MESSAGES INTO gt_custmsg.
       ENDAT.
    Can anyone help me out to modify this program to upload all the line items of a contract?
    Thanks
    Ricky

    Hi,
    Has anyone worked on this kind of scenario? Pls lemme know before i start changing the whole program logic for reading the line item. Thanks
    Ricky

  • Internal orders - Plan Line items are not uploading into SAP!!

    Hi Experts,
    Am uploading the budget values as plan line items of Internal orders(AUFK table) from my Z prog. by using BAPI_COSTACTPLN_POSTPRIMCOST.......in Return table(bapiret2), am not getting any error messages........so, am taking it for granted that, upload is successful.
    But, when I went to KOBP transaction.........I did not see any values for the internal order in question.......but, just now, I uploaded successfullly!!
    Let me know that, Why its happening like that? How to fix it?
    replies appreciated, thanq.

    I've lil doubt if this BAPI really update the internal orders in KOBP transaction.
    However just refer:
    bapi_costactpln_postprimcost
    Use BAPI_COSTACTPLN_POSTPRIMCOST
    And refer relevant OSS which is mentioned in Above threads.

  • Line item details of transaction in SAP POSDM

    Hi ,
    Can any body please tell me how to get the line items value of a particular transaction in POSDM. I think there is a Function Module that should be used. Can anybody please tell me the Function Module name.
    I have to get the sales value of each line item in a particular transaction in POSDM.
    P.S. I am an Abapper.
    Thanks in Advance !!
    Mayank

    Can you please tel me how you solved this issue?
    Edited by: Saranyadevi on Oct 10, 2010 10:08 AM

  • Total of line items in line item file not the same as in statement file

    Hi,
    Can anyone give an idea about this error?
    I analysed teh multicash file for the totals and line items total ties out with the statement total and formats of the file also seem to be fine.
    not sure why the error persists?
    Raj/

    You should give the exact message, with message number.
    If it is FB 777, "DTAUS: Number of line items not equal to control total; see long text", you should see the long text. I think it contains sufficient information:
    Text                                                                               
    DTAUS: Number of line items not equal to control total; see long text
    Diagnosis                                                                               
    data records of record type 'C' were handed over in the file you    
        imported. There must be  data records according to the control total 
        from the fourth field of record type 'E'.                                                                               
    Processing was therefore terminated.                                                                               
    The DTAUS file was not imported into the bank data clipboard. No     
        postings were generated.                                                                               
    Procedure                                                                               
    Inform your credit institution about the error which has occurred and
        let them give you a correct DTAUS file.                                                                               
    No actions are necessary in the SAP System.

  • How to delete the commented out lines in PC editor of a SAP Script?

    Hi Experts,
    I hv lot of commentde out code in the PC editor of a my_SAP_Script.........so, wanna to delete all this commented out code, so, let me know that, Do we hv any option other than manual deletion.
    Currently am doing it by,
    keeping the line totally blank,
    keeping the left small box, where we define paragraph formts,
    going BACK,
    save + activating,
    now, those lines r disappearing!!
    but, let me know, Is there any other MENU/push button optin to delete these lines?
    replies appreciatesd,
    thanq

    [pc editor doc|http://help.sap.com/saphelp_nw2004s/helpdata/en/f4/b49f1b453611d189710000e8322d00/frameset.htm]

  • Extracting Line Item and Line Item Status

    We are on version 3.5 of BW.
    I have a requirement to associate each row in the change log of the ODS - Sales Order: Item Status to a row in the change log of the ODS - Sales Order Item Data.
    For example:
    When there is a status change recorded in a "before" and "after" image rows in the Item Status change log, how do I associate that to the "before" and "after" image rows in the Sales Order Item Data.  Likewise of there is a "N"ew record in the Item Status, how can I associate that row to the "N"ew row in the change log for the Sales Order Item Data.
    Is this even possible?

    Thanks for your reply.  However can you be a bit more explicit using the terms:
    Sales Item Change Log
    Sales Item Active Data
    Sales Item STATUS Change Log
    Sales Item STATUS Active Data
    Any other table you may be using.
    In what table(s) are these counters and how do they cross reference each other?  How are you incrementing a counter in the Sales Item ODS and cross referencing it to a counter in the Sales Item STATUS ODS?   Remember what I want to do is reference a row in the STATUS ODS to a row in the Sales Item ODS.
    Again, thanks!

  • Vertical line issue in SAP Script main window

    Hi All,
    I want to draw a vertical line in my main window in SAP Script output.
    But problem is in main window i am printing some texts at the beggining then i am printing line items.
    So this is not fixed line (box). It may increase/decrease based on text available before line items.
    How can i manage this prining vertival line as i don't know height, top of this line!
    Thanks in advance.
    Thanks,
    Deep.

    Hai Deep,
    Use Elements as suggested by Kodarapu.
    Now goto Paragraph Formats create a format for Item lines.
    ex.
    Name Paragraph Format as 'IL' Now click on the Push Button "Tabs" on bottom Right.
    now in "Tab Position" enter the spacing that you need for your item dispaly
    ex.
    Number     Tab position       Alignment
    1               6.00   CH          LEFT
    2               25.00  CH         LEFT
    3               54.00  CH         LEFT
    The above example is for 3 items
    Now in your Script Windows-> Main
    do the following.
    /E           ITEM_LINE_A
    IL           &EKPO-EBELP&,,&EKPO-EMATN&,,,,&EKPO-TXZ01&
    Hope it SOlves your Issue.
    Cheers,
    Suvendu

  • How to display line items in a script...

    Dear All,
    My internal table for script is having 5 line items.
    But in output of script I'm getting 5 line items, 1 each in 5 different pages of script.
    But I need them one below the other in the same page...
    Plz give step by step procedure for the above requirement.
    Thanks & Regards
    Nagaraj

    Hi,
    Did u call any new-page command for every new line item?
    KIndly provide the code...
    Rgds,
    Pavan

Maybe you are looking for

  • Greek does not display correctly in iTunes

    I am currently using Japanese as my primary language on OS 10.4.3, and I am having problems with it displaying Greek correctly. I have many songs in iTunes that have Greek titles and artists that do not seem to display well. The same goes to Address

  • Track changes in Adobe Reader 8

    I've created a form in Livecycle.  Our company has Adobe Reader 8 installed on the network.  I'd like to be able to track changes, like in Microsoft Word, on the pdf form when it is emailed to another user so if changes are made, I can see what chang

  • Unzip with progress

    I'd like to be able to unzip a compressed application, and show a progress bar while doing it. I'm not aware of any public API to unzip that supports Apple's conventions for file attributes, resource forks and whatnot. I can unzip using the ditto com

  • Artist then year of albums

    I reeeeeeeeeealy want to be able to have my Artists sorted alphebetically then the Albums of that artist to be listed by the year they were released. Instead it will only allow me to have the albums listed alphebetically too. Thats just dumb. I searc

  • The authorization about Sales group

    now how to carry out authorization by sales group when create a sales order. Please explain me all the steps to be required. Thanks in advance