Item line heading

Hi,
i need to print item line heading for each new page.
I have only one window, main in the page and i have line items in the same window. I'm trigerring different sections using text elements. when the line item doesn't fit in the page its getting printed in the next page, which is the desired funct.
however, when it goes to the next page , i need to print item header for every new page. can someone let me know how i can do this with out making any changes to the layout.
Thanks,
kumar.

this can be done in different ways...
If you can modify the layout create a window and place the headings in this new window and call this window in all form pages.
If you can modify the driver program, it can be done by using text elements.
if you don't want to modify layout and program, try this below code...
place your item hedings in main window...
apply the follow ing logic...
Example..
if &temp& NE &nextpage&
flag = 'Y'.
endif.
If flag = 'Y'.     " note set flag = 'y' for first time
temp = page.
Headings goes here
flag = 'N'.
endif.
***line items goes here.....
try the rough example given above. close the thread once your question is answered.
Regards,
SaiRam

Similar Messages

  • Header & item lines on the same ODS

    Hello
    I have an ODS with Header line and Item lines of quotation .
    In this ODS, I have some characteristics like User Status which can be different between header line and item line
    EX : "Open" on header line and "In process" on item line
    My report must have one line by quotation
    So how can I do to get the status of header line only in my report  ?
    Thanks !

    Hi,
    One way to do is to add to data fields in the DSO
    -> populate the first one with the header value
    ->Second one with the item value.
    You can use the routine to populate the values based on if it is related to header or item.
    So in one record you will have the values of both or one of them depending on the scenario.
    Show these two different columns in the report.
    Thanks
    Ajeet
    Edited by: Ajeet Singh on Nov 4, 2008 4:58 PM

  • Header condition with acess sequence, don't want to distribute to item line

    We have defined a condition type as a header condition. We need to use access sequence to automatically determine a invoice fee when creating invoices. We have defined the condition type as a group routine with condition routine 1 (we only want it to show on the invoice). We have marked the "Changes which can be made" as both Header and Item condition. The problem is that when creating the invoice, the header condition distributes on the item lines, our client don't want that cause it will be a problem on the booking side (reporting).
    Is there any way of handling this so that the invoice fee ONLY shows on the header, and don't distribute on lines?
    Link to definition of the condition type:
    <a href="http://img222.imageshack.us/img222/2787/zgebinvoicefeerx4.jpg">Invoice Fee</a>
    Best regards
    Simen.

    Hi Simen,
                   we have a similar requirement. Did you get it resolved. We are currently looking at 2 aproaches
    1.) To leave it as item condition and de-activate it for all but one line and while printing remove from the item and print as seperate line.
    2.) Try and add it as a service item to the invoice.
    In both cases the condition will be mapped to a seperate GL a/c.
    Thanks
    Deep

  • If you enter a WBS at header level can it be copied down to the item lines?

    We have sales orders which require a WBS to be entered at header level (PS-POSID), and then on order save (VA01), it copies the WBS elements down to the item lines.
    Has anyone come across this requirement before and if so, how did you do it?
    Is anyone aware of an OSS for this or is it a development?
    Thanks!
    Rochelle

    Hello Rochelle, 
    Could you please check to see if the sales order item has the consumption posting indicator VBAP-KZVBR = 'P' (transaction OVZG)? If so then this seems to be the correct system behaviour.                                                                               
    This is the relevant coding:                                                   
    Bedarfsdaten ermitteln                                                       
         perform vbap_fuellen_t459k.                                               
    Transport Hpos - Upos braucht KZVBR wegen Kontierungvorschlag               
         perform vbap_fuellen_hvbap.                                                                               
    if vbap-kzvbr = kzvbr_p and                                               
            vbap-ps_psp_pnr is initial.                                            
           vbap-ps_psp_pnr = vbak-ps_psp_pnr.                                      
         endif.                                                                               
    Also consulting note 459734 may be helpful.
    I hope this helps.
    Best regards,
    Ian Kehoe

  • PR release refused for 7 lines out of 8 line item for header level released

    Hi Gurus,
    please help me how to resolve this issue.
    i have purchase requestion with 8 line items,out of 8 line items line 5 gets relesed and other lines relese refuded mode.
    i have checked the complete procedure,authorisations and tried through ME54N and ME55 also.
    please help me , thanks in advavnce.
    Regards,
    Babu

    hi
    please check the line items whether its blocked or deleted or value and quantity fields are updated.

  • Print out of item line in sales order

    Dear all,
    I hope someone can help me.
    In a sales order, if I open the menu
      Extras-->Output
    I can choose between Header and Item.
    Where are the differences here.
    Is it possible to print out only a highlighted item line by using
      Extras>Output>Item-->Edit?
    Thank you very much in advance.
    Andreas

    This is not possible in the standard system.
    One possible way could be to create a custom header output program (ex. one copied from BA00 outut) that reads in some way the checked items, or you can set some item field (ex. Additional data tile fields) and the read this field in the header output.
    Hope this can help you.
    regards
    Roberto Mazzali

  • Medruck script Item line changes

    Hi
    how to track changes in item line when ever changes are made in item level in which strucutre or special fields it stores tht value.

    Hi,
      The item changes can be tracked using the CDHDR (for header changes) and CDPOS (item changes)tables.
    The object class OBJECTCLAS has to be passed as 'EINKBELEG' for Purchase orders. And the object id OBJECTID has to be the purchase order number.The TABNAME field has to contain the table name (EKKO in the case of purchase orders).
    Check the below FM also:
    CHANGEDOCUMENT_READ_HEADERS
    CHANGEDOCUMENT_READ_POSITIONS
    Thanks.

  • Item lines do not appear in IDoc PRICECATALOGUE

    Hi everyone,
    I'm trying to set up for sending price catalog (to customers) using transaction VPRICAT (SAP 4.6). I've created assortment, assigned material group and assortment user to this assortment, and also created a requirements profile. I'm now able to create a price catalog using VPRICAT. The problem is when IDoc is created there is only the header information in that IDoc. No item line will appear in the IDoc. I appreciate if you could help me to locate the problem.
    Thanks in advance!
    BR,
    /Shahryar

    Any idea?
    /Shahryar

  • Interactive, dynamic forms -- "add item line" button

    Hi there,
    I try to come up with an interactive, dynamic form. Similar to the example "purchase order" found in the example folder of Adobe Designer.
    When opening my document, there should be one item line. Then, with a click on a button "add a item-line", a second line in the same format comes up. With a Delete-button in front of each added line, the user can delete them.
    How do I do that? The book I am currently reading explains all great things (how add sound to actions etc.) but this feature I do not find.
    From the above mentioned example I understand I have to group items (header line; single item line).
    But what is the actual command to replicate that item line ? I did not find any info about that.
    I am trying for hours now,,,,,,,,
    Thanks for your hints & happy Easter :-)
    DC

    Hi,
    I am having a similar problem ... I have created a dynamic form and utilize the very same button function to create a new line from the target subform. Problem is that the button when clicked in view pdf does not create the new line as one would expect.
    I have compared my form to the sample Purchase Order sample form ... everthing maps perfectly from my form logic to the sample with one exception. In my form when you click on the subform target and you look at the object tab: subform tab you can only select 'type' and 'flow direction' --- everything else is grayed out - in the sample these are 'live' selectable fields. Also on the binding tab for the subform object the 'repeat subform for each data item' is also grayed out.
    What am I doing wrong?
    Thanks,
    Jeff Schnabel

  • BAPI_SALESORDER_CHANGE insert sales order item lines ERRORS

    Hello experts,
    i have to insert new item lines for a given sales order document number.
    i use bapi_salesorder_change but it does not work.
    these are the messages in the return table:
    Error 1.
    Message: ORDER_HEADER_IN has been processed succesfully
    Message: No item category available
    Message: Error in ITEM_IN
    Message: Condition cc_cond is not allowed as header condition
    Message: Sales document was not changed
    Error 2.
    Message: ORDER_HEADER_IN has been processed succesfully
    Message:Material is not defined for sales org., distribution chan, language DE {but i checked the table mvke with the matnr and sales org and distribution chanel and the material exists}
    Message: Error in ITEM_IN
    Message: Condition cc_cond is not allowed as header condition
    Message: Sales document was not changed
    here is the code:
      i_t_item-itm_number    = p_posnr.
      i_t_item-material      = p_matnr.
      i_t_item-target_qty    = p_qty.
      i_t_item-plant         = p_plant.
      i_t_item-hg_lv_item = p_uepos.
      i_t_item-price_date   = p_preisdat.
       i_t_item-prc_group2   = cc_prc_group.
      APPEND i_t_item.
    *setting conditions
      i_t_bapicond-itm_number  = p_posnr.
      i_t_bapicond-cond_type   = cc_condition_type.
      i_t_bapicond-cond_value  = l_netwr.
      i_t_bapicond-conpricdat  = gc_datum.
      i_t_bapicond-currency    = cc_eur.
      APPEND i_t_bapicond.
      i_t_itemx-updateflag = cc_i. {= 'I'}
      i_t_itemx-itm_number = p_posnr.
      i_t_itemx-material      = cc_x.
      i_t_itemx-target_qty    = cc_x.
      i_t_itemx-plant         = cc_x.
      i_t_itemx-hg_lv_item    = cc_x.
      i_t_itemx-price_date    = cc_x.
      i_t_itemx-prc_group2    = cc_x.
      APPEND i_t_itemx.
      i_t_bapicondx-updateflag = cc_i.{'I'}
      i_t_bapicondx-itm_number = p_posnr.
      i_t_bapicondx-cond_type = cc_x.
      i_t_bapicondx-cond_value = cc_x.
    i_t_bapicondx-conpricdat = cc_x.
      i_t_bapicondx-currency = cc_x.
      append i_t_bapicondx.
      CLEAR: l_behave, sy-subrc.
      CLEAR i_t_header.
      i_t_header-updateflag = cc_u. {='U'}
      APPEND i_t_header.
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
           salesdocument               = sales_ord_number
       ORDER_HEADER_IN       =
           order_header_inx            = i_t_header
           simulation                      = cc_x
           behave_when_error         = l_behave
       INT_NUMBER_ASSIGNMENT       = ' '
       LOGIC_SWITCH                =
        TABLES
           return                              = i_t_return
           order_item_in                  = i_t_item
           order_item_inx                = i_t_itemx
       PARTNERS                        =
       PARTNERCHANGES              =
       PARTNERADDRESSES            =
       ORDER_CFGS_REF              =
       ORDER_CFGS_INST             =
       ORDER_CFGS_PART_OF          =
       ORDER_CFGS_VALUE            =
       ORDER_CFGS_BLOB             =
       ORDER_CFGS_VK               =
       ORDER_CFGS_REFINST          =
       SCHEDULE_LINES         =
       SCHEDULE_LINESX             =
           order_text                    = i_t_text
       ORDER_KEYS                  =
           conditions_in               = i_t_bapicond
           conditions_inx             = i_t_bapicondx
         extensionin                 = i_t_extensionin.
      IF i_t_return-type EQ cc_s OR i_t_return-type EQ cc_w OR i_t_return-type EQ cc_i.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = cc_x.
        PERFORM return_code.
      ELSE.
        p_flag = cc_x.
        PERFORM return_code_err.
    to rollback the transation for error records
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      ENDIF. " IF i_t_return-type EQ 'S'
    i hope you can tell me where my code is wrong.
    Best Regards,
    Emilia

    Hello ,
    Error 2
    i checked about the material number and it seems that everything is in order.
    so this is not the problem.:(
    Error 1
    about the item category error: do i get this error because i don't fill the field ITEM_CATEG?
    Error 1 and Error 2
    About Message: Condition cc_cond is not allowed as header condition
    i really don't undesrtand what this is about.
    thank you for your answer.
    Best regards,
    Emilia

  • Frieght condition in item wise & Header wise.

    Dear sir,
    I have defined a fright condition FRB1 . I have created this condition type as both header wise & item wise in M/06
    also selected C for manual entry .
    but now when i am giving fright condition suppose 200 in header in distribute  value 50 in all 4 line item.
    now i want to change in 3rd line item so that time  this fileds come gray.
    please guide me how i can change this condition in item  for one particular line item.

    Hi,
    If you want to distribute the Freight condition from header input to equal to each line item in item level.You have to tick the item and header condition in frt cond type and tick for group condition.
    If you want to change the frt cond in any line item after distributuin of frt in each line item it is not possible as the cond value flows from header level to each item, so you cannot change the same for one particular line item.
    So better remove the tick for header and make the codn as item only so that you can add the cond value for which ever line item

  • Split one sales order line into multiple item line on invoice

    Hi,
    When create proforma invoice from sales order (TCode, VF01), we can have multiple batches for on sales order item line. On invoice, we have requirement to make each batch become a single invoice line. Any help on how to do the split?
    Thanks.
    --Wenning

    Are you talking about a report to show all the line items of the order. MAy be I didnt understand you correctly.
    The key to both the tables is VBELN.
    However for any Invoice the line item in in VBRP tbable and the corresponding Header in VBRK.
    You could write to query to combine the lines in VBRP to one line based on your requirement.
    Shreekant

  • Overall Status for sales order line & header on a service order

    Hello,
    I have a service order that has been fully delivered and invoiced but the overall status for that line & header is "In process".
    I am unclear which area of configuration determines / controls the overall status.  Can anyone help point me in the right direction?
    Thanks.

    Hi Vicky,
    Check the completion rule in the item category of the order?
    Regards,
    Raghu.

  • Getting eariest date from item lines

    Hi Experts,
    In my scenario,File ->xi->Idoc i want to send file which contain one header and multiple item lines.In the item line there is one field called start date. if there are multiple item lines i want to get the eariest date from item lines and send that date to idoc header. how this can be done.
    Regards
    venky

    Hello Prasad,
    can you please provide me with the sample UDF for the following requirment
    following is my DT:
    + Header
         abcd
         xyz   
         +++ Item
        ++++ start_date
         +++ item
            ++++start_date
    The Header has n no of Items in it
    Now I want to produce start date to be placed into Header in such a way that the earliest of the start_date is found out and that should be sent into the Header.
    Please provide me UDF related to it.
    thanks in advane
    venkatesh
    useful answers will be rewarded ********

  • How to pass Schedule lines of an item Line to 'BAPI_QUOTATION_CREATEFROMDAT

    Hi Friends,
    I am trying to create Sales Quotation using the  'BAPI_QUOTATION_CREATEFROMDATA2'  from Webdynpro Application.
    I am able to create the quotation with Line items, but I am not able to pass the multiple schedul line for an Item line.
    it takes,but it checks the item availabilty and propses the delivery propsal dates.
    but my requirement is It should take only the schedule line items which I am passing to BAPI,because I do the availability check in my application and pass those schdule line items to BAPI.
    If I pass only one schedule line item then should create only with one schdule line item,If I pass Muliple then it should create schedul lines for item line.
    Please help me in solving the issue.
    Regards,
    Xavier.P

    Hi max,
    loop at lt_nd_quote_items into ls_nd_quote_items.
        lv_item = lv_item + 10.
    *Check weather Availablity check is done or not.
        read table lt_nd_schedule_lines into ls_nd_schedule_lines
                           with key matnr = ls_nd_quote_items-matnr.
        if sy-subrc = 0.
          loop at lt_nd_schedule_lines into ls_nd_schedule_lines
                            where matnr = ls_nd_quote_items-matnr
                            and   kwmeng = ls_nd_quote_items-kwmeng.
            lv_sch_line = lv_sch_line + '0001'.
            wa_order_schedule-itm_number         = lv_item.
            wa_order_schedule_inx-itm_number     = lv_item.
            wa_order_schedule-sched_line         = lv_sch_line.
            wa_order_schedule_inx-sched_line     = lv_sch_line.
            wa_order_schedule-req_date           = ls_nd_schedule_lines-delv_date.
            wa_order_schedule_inx-req_date       = c_abap_true.
            wa_order_schedule-req_qty            = ls_nd_schedule_lines-kwmeng.
            wa_order_schedule_inx-req_qty        = c_abap_true.
            wa_order_schedule-SCHED_TYPE         = 'BP'.
            wa_order_schedule_inx-SCHED_TYPE     = 'X'.
            wa_order_schedule-MS_DATE = ls_nd_schedule_lines-delv_date.
            wa_order_schedule_inx-MS_DATE = 'X'.
            wa_order_schedule_inx-updateflag     = 'I'.
            append:wa_order_schedule to  it_order_schedule,
                   wa_order_schedule_inx to it_order_schedule_inx.
            clear:ls_nd_schedule_lines.
          endloop.
        else.
    *If no Availablity check is done,pass the item details to schedule lines.
          lv_sch_line = lv_sch_line + sy-tabix.
          wa_order_schedule-itm_number         = lv_item.
          wa_order_schedule_inx-itm_number     = lv_item.
          wa_order_schedule-sched_line         = lv_sch_line.
          wa_order_schedule_inx-sched_line     = lv_sch_line.
          wa_order_schedule-req_date           = ls_nd_quote_items-delivery_on.
          wa_order_schedule_inx-req_date       = c_abap_true.
          wa_order_schedule-req_qty            = ls_nd_quote_items-kwmeng.
          wa_order_schedule_inx-req_qty        = c_abap_true.
          wa_order_schedule_inx-updateflag     = 'I'.
          append:wa_order_schedule to  it_order_schedule,
                 wa_order_schedule_inx to it_order_schedule_inx.
        endif.
        clear:ls_nd_quote_items,lv_sch_line.
      endloop.
    Max,  the internal table lt_nd_schedule_lines  is containg my schedule lines,if there are no lines in that table i am just passing the default line item details so that the BAPI take care of schdule line for that Line item.
    Could you please help me in figuring the issue?
    Regards,
    Xavier.P

Maybe you are looking for