Header Details to be Printed only for the line item details.

Hi All,
I have the following requirement.
I have Page1 with the Logo, Header Window, Vendor Window, Send Invoice To, Delivere Invoice To and Main Window. Main Window Starts from the middle of the page. In the Page2 i have Logo, Header window and Main Window. In the Page3 i have only Main Window.
In the Footer of the Main Window i have Placed the Terms and conditions which should always be Printed in the New Page. So in the footer i have given a command "Go to New Page " and given the page as Page3.
The requirement is Logo,and Header Window should appear only for the Line items and not for the Terms and conditions.
For the Page1 i have given the Next Page as Page2. Suppose if there is only one line item then it Prints in the first Page itslef and the control flows to the Page2 and since in the page2 i have given the condition for the Logo and header window to print only if line item is more than 1 and since Main Window is starting from the middle there is a blank Space appearing in the start of the page.
The command i have given in the footer to trigger new page that is page3 is not getting triggered. If there are more than one line item then its printing the logo and header window and so there is no blank space appearing and it is working fine.
Please let me know how to avoid this blank space and move my main window to the start of the Page if there is only one line item.
Thank you.

Dear Vasudha,
I am a little bit confused regarding your query,
"In the Footer of the Main Window i have Placed the Terms and conditions which should always be Printed in the New Page. So in the footer i have given a command "Go to New Page " and given the page as Page3. "
When you say footer of main window does it mean , that you are using a table inside your main window and the command node your have inserted is in the footer of the table ?.I hope it is, because my suggestion is based on this assumption.
Well my suggestion for your issue is,
1.I  hope you are aware we can trigger a next page in two ways, one by setting the next page static attribute & second using  the command node which you have used.In your case you will have to use a combination of both.
2.I feel your First page design is ok. Set its static next page attribute to PAGE2. Similarly set the static next page attribute for PAGE2 as PAGE2 itself. This should take care of your table which you have placed in the main window. If the table contains only one lineitem it will get over in the first page itself. If the lineitems are more in the table, it will automatically triggerPAGE2 (since static next page attribute for PAGE1 is PAGE2)  and the remaining line items will be displayed. Now no matter how many lineitems you have ,PAGE2 will be triggered repeatedly(since static next page for PAGE2 is PAGE2 itself) until the entire data in your table is displayed.
In this way your requirement of printing the logo and header windows for the data lineitems only will be fulfilled.
3.Now the last catch in your case is the printing of PAGE3(The terms and condition page) on an entirely new blank page.
   In the footer section of the table which you have used,  use a command node set to PAGE3.  After the command node and under the same  footer section now insert your terms and condition lineitem.
Also Check the "at End of table" checkbox and uncheck " AT PAGE BREAK" under OUTPUT OPTIONS tab for the footer section.
So now this footer section will be triggered only once after all the data in the table is displayed
4. So now if there is only one lineitem, before the default second page is triggered the command node will trigger the PAGE3 and the terms and condition will be displayed.Else if there are more lineitems the page2 will be triggered again and again and finally when all the lineitems are over, the footer of the table will get triggered. So the command node will take you to the PAGE3 wherin the terms and condition will only be displayed.
Hope this helps.
Regards,
Riju

Similar Messages

  • Pretty Printer ONLY for selected lines in ABAP editor?

    Hi,
    I have done SETTINGS(Menu----Utilities) in PRETTY PRINTER in my ABAP editor that, all KEY WORDS shuld b in UPPER CASE.
    Say, I hv written code(in raw format, not yet pressed the PRETTY PRITER) like below,
    ABAP Code Line_1
    ABAP Code Line_2
    ABAP Code Line_3
    ABAP Code Line_4
    ABAP Code Line_5
    I want to hv pretty printer format for Line 3 and Line 5 ONLY!! I do not want to hv it for other lines, so, I high lighted(selected) those lines (3 and 5) and pressed pretty printer, but, am getting the pretty printer format for all the rest of the code as a single shot!!
    So, pls. let me know that, How I can get the pretty printer format ONLY for the lines, for which I wished(selected by high lighting)?
    And also let me know, How Can I do automatic(not manually) indentation for my code as a part of pretty printer? Actually, I tried but, am not getting even though I checled the check box intendation in SETTINGS!!
    Thank you

    Hi ,
    Preety printer will work on all the code that is avaliable in window,
    In case. if you want to do partial , copy your code in seperate window and do Pretty Printer for  it.
    Refer http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ad6454211d189710000e8322d00/frameset.htm for other queries.
    Edited by: Harsh Bhalla on Nov 27, 2009 9:17 AM

  • How to get Header data into multiple times along with the Line Items

    Dear All,
      I have problem while mapping the Header data and line item data to the flat file structure, Header data have to repeat along with the Line item data in the flatfile.
    Details is below.
    Example
    Header record is one
    E1EDK01
    E1EDKA1
    Line items are two
    E1EDP01
    E1EDP01
    I want in the flat file two records having duplicate data in the fields which is belongs to header data
    Like :
    Record #  partner data     Line item data
    Record 1 : WE name1 city   00010 materialname1 156
    Record 2 : WE name1 city   00020 materialname2 198
    ( WE name1 city - data is same in the record 1)
    For this what I did is I mapped the node E1EDP01 to the flat file message type node then I got all the line item data and first record is with header data but not in the second record.
    I tried all node functions but no result because Idoc itself header data exists one record, I am not able to copy.
    If any one knows , please give solution.
    It is great help to me.
    Thanks in Advance.
    Ramarao

    Dear Ramarao,
    This will help you,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b
    No Documentation for Mapping Function useOneAsMany (Mapping Problem)
    /people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    Thanks & Regards
    Agasthuri Doss

  • BAPI_PO_CHANGE to update the Price for the line item not updating the Price

    Hi,
    I am using BAPI_PO_CHANGE to update the Price for the line item. This BAPI is not updating the Price. I am using external cummit also, but the BAPI is not updating price.
    I am passing following data to the BAPI.
    Plant: CQ11
    PO                   Material                Price
    4500002142     TEST_BATCH     12
    Please provide suggestion.
    Regards,
    Jubin.

    Hi,
    check this link...this has sample code
    [http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm]
    Regards,
    Surinder

  • Problem in fetching the code for the line item

    Hi,
    I am working on a report in which to display the values corresponding to the line item of a PO.
    For, ex, if there are 3 line items 10,140,150 and their condition values such zing,zgrd,zbrd are the condition types consist of different values depending on the line item i.e. 10,140,150.
    My problem is when i execute the code the data of 1st line item is correctly fetched but the rest 2 line item data is pasted as it is. only the main pricre changes and the code for zing,zbrd,zgrd remains same as it is in the first line item 10.
    plzz proivde me guide lines how to solve this problem.
    Here's d code:-
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr.    "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr.    "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr.    "ZBDL COST
    LOOP AT item.
        SELECT kbetr FROM konv INTO item-rate  WHERE knumv = header-knumv AND kposn = item-ebelp
         AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
          MODIFY item.
       ENDSELECT.
      ENDLOOP.
      LOOP AT item.
        SELECT kwert FROM konv INTO vkwert  WHERE knumv = header-knumv AND kposn = item-ebelp
        AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
        ENDSELECT.
      ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
      LOOP AT item.
        SELECT kbetr FROM konv INTO vspl  WHERE knumv = header-knumv AND kposn = item-ebelp  
       AND  kschl = 'ZCOM'.
        ENDSELECT.
        SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZBR1'.
        ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
        SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZING'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZGRD'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZBRL'.
       ENDSELECT.
    *******************End - new code added on 14.01.2009******************
      ENDLOOP.
      LOOP AT item.
        item-rate  = item-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
        item-rate1 = item-rate1 + vspl2.
        item-rate2 = item-rate2 + vspl3.
        item-rate3 = item-rate3 + vspl4.
    ********************End - new code added on 14.01.2009*******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate.
    *******************Begin -11`` new code added on 14.01.2009******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate1.
        MODIFY item INDEX sy-tabix TRANSPORTING rate2.
        MODIFY item INDEX sy-tabix TRANSPORTING rate3.
    *********************End - new code added on 14.01.2009******************
      ENDLOOP.
    PLZ PROIVDE ME GUIDLINES HOW TO SOLVE THIS PROBLEM .
    Edited by: ricx .s on Jan 19, 2009 10:16 AM
    Edited by: Vijay Babu Dudla on Jan 19, 2009 5:22 AM

    Hello,
    Why are you looping at the same internal table so many times, you could probably perform everything within one loop instead.
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr. "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr. "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr. "ZBDL COST
    field-symbols <fs>.
    LOOP AT item assigning <fs>.
    SELECT kbetr FROM konv INTO <fs>-rate WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    MODIFY item.
    ENDSELECT.
    SELECT kwert FROM konv INTO vkwert WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    ENDSELECT.
    ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
    SELECT kbetr FROM konv INTO vspl WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZCOM'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBR1'.
    ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
    SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZING'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZGRD'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBRL'.
    ENDSELECT.
    *******************End - new code added on 14.01.2009******************
    <fs>-rate = <fs>-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
    <fs>-rate1 = item-rate1 + vspl2.
    <fs>-rate2 = item-rate2 + vspl3.
    <fs>-rate3 = item-rate3 + vspl4.
    ENDLOOP.
    Also, use field-symbols and use loop at itab assigning addition so that you can directly change the contents of the table without using modify statment.
    regards,
    Advait

  • Foreign trade data is incomplete for the line item eg 70!

    Dear Sapients,
    I have encountered an issue related to invoice while releasing it to accouting.
    The invoice is done for several line items but the problem is faced for one line item only, could any one suggest the possible solution please.
    Regards.
    Kodali

    hi
    Read the following SAP note. This can also be the case.
    Note 354222 - Foreign trade data incomplete for domestic business
    Symptom
    A billing document cannot be transferred into accounting because the foreign trade data is incomplete.
    However, the underlying business process is a domestic business!
    Additional key words
    VF01, VF02, EIPO, EIKP, foreign trade, incompleteness, domestic, delivery, billing document, EXNUM, EXPKZ,export indicator, export number
    Cause and prerequisites
    In the respective delivery or in the billing document, for domestic business you by mistake go to the foreign trade data into a field. Since the incompletion log requires at least one entry for foreign trade, you must fill one field in order to be able to leave the foreign trade data again without canceling document processing.
    Here, an export indicator and an export number is assigned which cause the incompleteness of the whole document due to missing export data.
    Solution
    A solution in the standard system is currently not planned since because of various customer requests the foreign trade data in the delivery should be accessed and maintained for domestic business too. An example is the inbound delivery in a bonded warehouse where the forwarding agent should get information already in advance.
    To avoid incorrect billing documents, proceed as follows:
    Copy data transport routine 001 to a routine 601 and enhance the new routine according to the attached correction instruction (RV60C601). Store this new data transport routine in Customizing for the copying control for billing documents for the processes you use, for example
    F2 - LF, item category TAN. (delivery-related)
    If you already use an own data transport routine, in this data transport routine include the attached source code.
    You must cancel existing billing documents and then create them again.
    If you do not want to cancel existing documents, implement the attached correction (program RV60AFZZ) and release the documents either individually (VF02, default transaction) or via the list of blocked billing documents (VFX3).
    After you completed the correction, you should cancel this solution (RV60AFZZ) again.
    Also refer to the attached Note 170183.
    Source code corrections
    Header Data
    Release Status: Released for Customer
    Released on: 16.02.2005 17:15:20
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: SD-BIL-GF Basic Functions
    Secondary Components: SD-FT-PRO Basic Functions
    SD-BIL-CA Account Assignment

  • How to get the change mode option for the line items in SC

    Hi Everybody,
    1. when the SC has 2 line items and in that if both the line item are rejected by the approver and the requester is receiving it for accept changes and when he click on the change button and wants to change the line items of both the rejected one, the change is enable and the requester can do the changes in the line items of the shopping cart which is working fine. but in the other case
    2. when the SC has 2 line items and in that if any one of the line item is rejected and other one is approved by the approver and the requester is receiving it for accept changes and when he click on the change button and wants to change the line item of the rejected one, the change is getting disabled but for the approved line item the requester can able to do the changes.
    so can anyone help me out how to solve this issue that if any one line item is rejected in the shopping cart also it should get the editable mode when the requester wants to do any changes.
    thanks in advance.

    Hi Everybody,
    1. when the SC has 2 line items and in that if both the line item are rejected by the approver and the requester is receiving it for accept changes and when he click on the change button and wants to change the line items of both the rejected one, the change is enable and the requester can do the changes in the line items of the shopping cart which is working fine. but in the other case
    2. when the SC has 2 line items and in that if any one of the line item is rejected and other one is approved by the approver and the requester is receiving it for accept changes and when he click on the change button and wants to change the line item of the rejected one, the change is getting disabled but for the approved line item the requester can able to do the changes.
    so can anyone help me out how to solve this issue that if any one line item is rejected in the shopping cart also it should get the editable mode when the requester wants to do any changes.
    thanks in advance.

  • Increase In GR value for the Line Item

    Dear Friends
    I have a Cost center PO with "text item"  ordered for Quantity 10000 PC for  an amount of 10000 USD. MIGO has been done 4/5 times where the quantity inwarded equalled the GR value.  in the month of Novembeer  the user carried out GR for a quantity of 290 PC but suddenly the GR value was higher i.e 434 USD. User cancelled the document using MBST and the Value which got cancelled is 290 usd only and not 434(which should have been).
    My query is why system behaved abnormally? There is no item change log in the PO as User has not changed the unit price for the PO. I have checked the PO history Table " EKBE" and i do not find any changes to the Value of PO during or before the period , no changes are displayed in the Table w.r.t value.
    Secondly why during cancellation system only considered the PO value not the GR value. Where should I look for  the reasons of this abnormality.
    Thanks

    this can happen if any freight or packaging condition value was present while GR but deleted or altered befire the cancellation of document.. pl check in MSEg for amount in LC and delivery costs.

  • How to Close a Purchase Order line Item for GRN W/O Deleting the Line Item

    Hi,
    I want to Close a line item for Goods Receipt in a Purchase Order. How Do I do this?
    My Requirement is that the system should not allow for Goods Receipt for the Line Item.
    I know of 2 options which are difficult to Implement.
    1) I delete the Line item
    2) Put the delivery Completed Indicator - For this the system still allows for GR
    any Other way of Closing the line Item
    NS

    Hi, you can close the Line item by, doing partial GRPO, i.e if u use the Copy From option in GRPO, there comes a Draw docuemnt wizard, there you can choose one line item, and then put GRPO for that line item,
    The Wizard comes only in the Copy From option,
    Close the Line item, by right clicking on that Line item and then 'close Row'
    Edited by: Gayathri Panneerselvam on Dec 19, 2008 10:25 AM

  • Vendor field empty for RE line items in FBL3N

    dear all-
    I'm experiencing a strange situation. Instead of using the MM-report, I want to do a GRIR analysis in FI. When I run FBL3N for the GRIR account I see that for the goods-receipt related documents (doc type WE) field like puchase order and vendor number are populated (and contain a value). However for the line items that come from the invoice the field purchase order is filled but the field vendor is blank.
    I did have a look at the BSEG table for the WE- and RE-related documents: for all line items of the WE document (goods receipt) the fields purchase order and vendor contained a value, for the RE document (invoice receipt) all line items have a value for purchase order but only the first line item (vendor line) has a value for the field vendor. On all the other line items the vendor field is blank.
    Looks pretty strange to me, who has a good solution?
    thx
    Ben

    hi Vishal-
    Thanks for the BSIK, BSIS tip!
    In the meantime I did find report RFWERE00. I was able to generate a list that indeed showed the vendor number on the GRIR account both from the GR- and RE-document. Didn't have time yet to go over the code to figure out where this report gets its data from.
    The report offers options to do actual clearing and do postings ... I'm not interested in that. Only in the list. I have a start now ...
    ... If you have another I idea that prevents me from creating a customer report ... I'm eager to hear it!
    rgds
    Ben

  • FF7B - Cash management Profit centre in the line item

    Hi,
    We are facing one problem at our end.
    We have upgraded our system to ECC 6 with new gl activated.
    Also activation of cash management (lequidity forecast) exist since 4.6C .
    Now with New GL activation in place and When we run FF7B -  ( Transaction to check the lequidity forecast ) it shows the summary details but when we drill-down to a line item level and copy profit centre as well as segment field from the layout for the line items the fields are appearing blank.
    Is anybody have the idea how to populate or update the profit centre as well as segement field in the same line item data in future and also for the past data.
    Thanks & Regards
    Mahesh

    this is available in Enhancement Pack 5.

  • MRP can be configured not to run for a line item

    Hi Folks,
    I have a question... Scenario is like this:
    We are getting a Sales Order in SAP from a Portal which is exposed to external customers. The Sales Order has say 10 line items. Usually this will kick off MRP for each of these line items right away. Now we do not want MRP to kick off as we do not know as yet the line items in there are valid or not. There is  another application which will confirm if the line item is valid or not. Once it confirms if the line item is valid the MRP will run for only those items which are valid and rest of the line items will be rejected.
    Question how we can stop the MRP to not to run for the for the line item once the sales order is created. Creating a Delivery block is not going to help in stopping MRP run...
    Looking for some out of the box solution without any customization.
    Thanks and Regards
    Roger

    Hi,
    Check your requirements class via transaction OVZG. Do they have automatic planning set? Is No MRP Set?
    Regards

  • Reason for Rejection for blocking line item for delivery

    Hi All,
    I am working on this project where based on earlier configuration, by selection reason for rejection, delivery for line item is getting blocked.
    I want to change this settings because reason for rejection should not be controlling the blockage it should be merely be the reason. Delivery should be blocked if it is blocked by selecting delivery block field in schedule line for the line item.
    How can I change the settings for the reason for rejection?

    Dear ankit.k.agarwal      
    If you assign a reason for rejection system will block the particular sales order and that sales order shouldn't be used any longer.
    This is the standard SAP behavior and the program was written like that.
    Still if you want to do , you have to go for an enhancement to change the standard program(It is not suggestible)
    In stead you add a new field in sales order(field exit)  and convince your key/core users to maintain the reason for rejection in that field .
    Co ordinate with your technical team
    Thanks&Regards
    Raghu.k

  • VA02-- Rejecting the line item

    when i reject the line item  in VA02 item overview tab, after giving reason for rejection, it showas the message as   "item can no longer be changed automatically". hence i am unable to  see in the feild reject date in VBEP table, can someone help me solving this.
    Edited by: devi anushka on Sep 22, 2010 10:21 AM

    Hi Devi,
    He already given a reply for that.
    There may be some documents created for the line item you want to reject.
    If there is any "Delivery" or "Invoice" created for a line item, it is not possible to reject.
    Still if you want to do the same, Cancel the invoice (VF11), reverse the goods movement (VL09) and delete the delivery (VL02N).
    Now you will be able to reject a line item.
    Try and let me know the feedback.
    Regards,
    Mullairaje

  • MIRO partial invoice for PO line item

    Greetings,
    We are currently using GR based invoice verification. Recently we received a vendor invoice for partial billing of a fully received line item. The system requires that we enter both a quantity and an amount for the line item being paid. We have up to three decimal places in the quantity field. Our problem is that the amount of the invoice does not correspond to a number that can be entered in the quantity field (it equates to .06147029...). This is causing the system to generate a split accounting entry. Rather than debiting the GRIR account for the full amount of the payment, it is debiting the GRIR account for the amount that corresponds to the quantity entered, and then posting the remainder to the GL associated with the cost object from the PO. Is there a way to prevent the system from making this additional entry? Any input you can provide would be greatly appreciated. I will award points for helpful suggestions. Thanks! Heather

    Per SAP, the functionality is working as designed.

Maybe you are looking for