Printing of Material desc on change of material no in the ADOBE form

Hi Experts,
I want to print material description on change of material no. if there is 4 line item in same matnr then it will show only one desc for
this. And on change of matnr it will change and total will print over there. for the 2nd MATNR desc will change and total will also print there for 2nd material no. Plz do suggest hw can i do this?
Thanx in Advance.
regards.
sunil

Hi Sunil,
  You can achive that by using the nested table concepts. Say you have two internal tables. One having all the line items data and the other the Description and totals for different material. Now you can loop the 2nd internal table inside the first one with where clause. In the context of the Form, add the 2nd internal table inside the 1st one and then in form use nested subforms.
I hope you have got the idea how to do it.
Regards,
Susanta

Similar Messages

  • SAP query for Material pricing group changes in material.

    Dear all,
    I'm trying to generate a query for Material Pricing group changes in material. For that I've to retrieve data from follwing three tables MVKE, CDHDR & CDPOS.
    Firstly while generating infoset -
    I tried it by joining tables MVKE & CDHDR, but system is not allowing it, also table CDPOS can't bejoined.
    Then I tried by reading dirctly from table MVKE and then adding additional fields in it. query created using this infoset is giving the output, however it's giving only 1 entry per material entered in input.
    for multiple entries in output for MPG changes in same material I tried creating addtional structure for table CDHDR & CDPOS but again I'm getting only 1 entry per material.
    please suggest how I can get MPG changes done in specified time period for a material.
    Thanks.

    Hi
    Check the report RSSCD100 and run it for object MAT_FULL for table MVKE. Use this report as a template for your own development.
    I hope this helps you
    Regards
    Eduardo
    PD: sorry, the table is DMVKE
    Edited by: E_Hinojosa on Sep 2, 2011 9:37 AM

  • Using the Adobe Forms for printing through portal

    Hi All,
    I've got a problem with the fact that I do not know exactly how to use the Adobe Forms from the portal.
    I've got the Form Objects done (Interface & Form using SE80) and they work OK when testing the form. The Interface gathers all the datas etc. and the form displays this correctly.
    My problem now is that I need to have this form available from the portal, and this I presume needs some WebDynPro stuff or something else? I'm totally lost on this part ...
    The customer wants to have a button or link in the portal that opens a new window with the produced PDF opened in the new window, much like opening a static PDF file. The user then has the option to print the PDF him/herself using Adobe Readers own print mechanism.
    My interface has only one Import parameter (PERNR number) and one EXPORT parameter (default). The PERNR number must be supplied to the interface so that it can gather all the needed data based on this number.
    Any help on this will be greatly appreciated and rewarded accordingly.
    Thankyou in advance,
    Kim

    Hi Arnab,
    from a forms point of view:
    (I assume you have the ADS up and running on the Java stack. Without it, the form generation doesn't work.)
    If you create your form in transaction SFP and execute the corresponding program that calls the form for testing in SE38, you get to the print dialogue. Here you may choose either locl or lp01 (or any other printer accessible through your network) and then select Print Preview. This should then display the PDF in SAP GUI.
    If you are asking about general printer setup within SAP, check the corresponding documentation: http://help.sap.com/saphelp_nw04s/helpdata/en/d9/4a8eb751ea11d189570000e829fbbd/frameset.htm
    Hope this helps,
    Markus

  • Print the attachements added in the adobe form

    Hi,
    I added the attachments in the adobe form.But when ever i print this adobe form , i want to make sure that the attachments are also printed in addition to the original adobe form.
    Is there any automatic way of doign it or any alternatives to avoid adding it as an attachment ,
    i have  a word document stored in the database.
    so when ever i print my form need to print the document sthat are stored in the database also.
    Please help me.
    Regards,
    Sasi

    "Discrepancies"?

  • Unable to print the adobe form Genrated by webdynpro

    Hi Experts,
    I have generated a adobe form using webdynpro Java. It sucessfully loading the adobe form in the browser but when I click print button above the form. It just opens acorbat reader console and doesnt print the form.
    Is there any additional settign to be made to acheive it.
    we are using WAS 7.0 and acrobat reader 8.0
    Your suggestions are highly apprecited.
    Thanks,
    Raj

    Hi Raj,
    Try this out. You can put the print button in the Form itself.
    Go to Library -> Standrad -> Print Button
    Drag the print button on to the form.
    Try printing the form by clicking on the print button.
    Cheers
    Satya

  • How to avoid printing a balnk page at the end in the Adobe form output

    Hello Experts,
        Can anyone please let me know as how to avoid/delete the blank page at the end of adobe form output.
    I have a master page with header n footer and a body page seperate.
    For ex.. I have 3 line items and i want each line item to be displayed in the new page. I am able to get this functionality . I have set the settings in the paginationb tab of the subform as
    "after " Go to Next content Area" " but an extra page is getting printed at the end. 3 + 1 extra pages total. I want to avoid this blank page. I have checked the Allow page break with in content box but it is still not working.
    Can someone guide me as how to solve this problem.
    Any help is appreciated. Thanks in advance.
    Regards,
    Mahesh

    hey mahesh,
    this normally happens because of triggering a new page manually, what u would have done is that you would be checking for the new line item and when this condition is satisfied , you are triggering a new page , the reason for the last blank page is that the condition gets satisfied ( beacuse the line item number changes from the last line item no to  initial or space).
    This can be handled by doing the following
    By knowing the number of line items by the following stmt.
    describe table itab lines v_lines.
    Now you have the value in v_lines.
    use a counter in ur form and keep it increasing it by 1  ( say v_sno ) ie v_sno = v_sno + 1 in the loop of ur internal table.
    ONLY WHEN V_LINES IS LESS THAN OR EQUAL TO V_SNO , TRIGGER THE NEW PAGE
    this should be along with the condition which u have already put, ie when ever line item no changes
    when both these conditions are satisfied , then only the new page will be triggered.
    Hope it helps,
    Reward if useful,
    Regards,
    KP.

  • Hide/Disable Print button on the Adobe form for my user

    Hi
      How do I Hide/Disable my print option for the user viewing my Adobe form shown using WD for Java application.
    Regards,
    Murali.

    Hello Raja Sekhar,
    This object is not available anymore in Designer 7.1. This setting can now be achieved through a web dynpro (Java) API (interface <a href="https://media.sdn.sap.com/javadocs/NW04s/SPS7/wd/com/sap/tc/webdynpro/clientserver/adobe/pdfdocument/api/IWDPDFDocumentAppearance.html">IWDPDFDocumentAppearance</a>). In web dynpro ABAP you would need to use the method handler of the <b>InteractiveForm</b> UI element (IF_WD_IACTIVE_FORM_METHOD_HNDL, SET_HIDE_TOOLBARS).
    Regards,
    Philipp

  • Cannot print PDF files with Firefox 5 .. I have the Adobe add on .. whats happening ??

    Whenever I try to print a PDF file it prints teh header but empty page s.. I have the Adobe add on and it is enabled .. The same file is printable with Internet Explorer .
    Help !! Getting awfully tired of opening uo IE just to print .. If anyone has suggestion, a reeply to [email protected] would be great
    Thanks a lot
    Bill

    Very strange!  What is your installed Reader version?
    Try disabling Protected Mode in Adobe Reader [Edit | Preferences | Security (Enhanced)].

  • Check Printing in Adobe Form

    Hi,
    My requirement is to modify the layout of Check Printing  program RFFOUS_C from SAP Script to Adobe Form. I am using ECC6.0. I went through the code, and figured out that include RFFORI01does the check printing part using Open_Form Function module.
    Also going through other threads, I figured out that there is no exit in the program RFFOUS_C and the only way to modify it is create a copy of that program and add changes to ZRFFORI01. In the adobe form, apart from normal check printing, i need to add few fields from HR module too.
    Any help/ sample code, on how to incorporate this, would be really helpful as I am new to ABAP.
    Thanks,
    Anusha

    Hello Anusha,
    Did you get a solution for your problem on having to print an Adobe form instead of a SAPScipt for the payment program RFFOUS_C?
    I have a similar requirement and will appreciate if you could reply sharing your experience and how you went about with your solution.
    Thanks in advance.
    Shivani.

  • Adobe Form output cropped when sent directly from SAP to printer

    I have created an Adobe Form (not interactive) that looks perfectly OK when previewed in Adobe Acrobat viewer but when printed blank margins of 4-5 millimeters are applied on all 4 paper edges. The form was designed with a coloured frame around it but the margins effectively remove most of the frame. The form content is being cropped instead of being compressed inside the margins.
    The form has been created with LiveCycle Designer via SAP transaction SFP. I am generating the form from an ABAP program
    When the form is printed from the Adobe Acrobat viewer I have the option to set Page Scaling to 'Fit to Printable Area'. This makes the form content being compressed inside the blank margins and the coloured frame remains intact. If I leave the Page Scaling setting as 'None' the output is being cropped as described above.
    The real problem occurs when I want to print without previewing first. I need to do that since previewing enables the user to skip printing and the application must know if the form has been printed or not. I have so far found no way to make the printer print on the paper edges or fit the content to printable area. Is there some setting in the output parameters than handles this?
    Also there is a need for duplex printing when sending form directly to printer. On help.sap.com there is information about duplex print for SAPscript and Smartforms but nothing for Adobe Forms.
    Here is an excerpt of the ABAP code used for printing the Adobe Form:
      DATA: zs_outparams TYPE sfpoutputparams,
                 z_fmname     TYPE rs38l_fnam.
    Set some print parameters
      zs_outparams-nodialog = abap_true.        "No user dialog
      zs_outparams-device   = 'PRINTER'.          "Output device
      zs_outparams-dest     = z_pdest.              "Printer name
      zs_outparams-reqnew   = abap_true.        "New spool request
      zs_outparams-reqimm   = abap_true.        "Print immediately
    Open print job
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = zs_outparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
      IF sy-subrc <> 0.
        RAISE print_error.
      ENDIF.
    Get FM name for form
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = 'Z_TEST_FORM'
        IMPORTING
          e_funcname = z_fmname.
    Call FM to print form
      CALL FUNCTION z_fmname
        EXPORTING
          i_header       = t_data_for_form
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
        RAISE print_error.
      ENDIF.
    Close print job
      CALL FUNCTION 'FP_JOB_CLOSE'
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
        "Ignore
      ENDIF.
    Please advise on how to
    -  avoid the content cropping
    -  enable duplex print
    when sending Adobe forms directly to the printer
    Thanks very much!
    Bernt Evensen

    Thanks for your answer, Ramachandra!
    However I need some more specific information to solve this.
    Which printer layout settings are relevant for the handling of margins and duplex printing for Adobe Forms?
    I have not set up the printer myself but when talking to the printer guy which settings should I recommend him to look at?
    I can see in transaction SPAD that there are settings specific to SmartForms but there is nothing said about Adobe Forms. Is there some way to make Adobe Forms related setting appear in SPAD for a device type?
    Maybe my problem is not related to the printer device settings but rather to the way the printer is being called. When printing duplex we will have to override the default settings of the printer anyway.
    Function module FP_JOB_OPEN has a parameter structure of the type SFPOUTPUTPARAMS. Which fields in this parameter structure are to be manipulated to get duplex print and output fitted to page size?

  • Adobe form print problem

    Hi all,
    I'm new to Adobe forms. I have created a new abode form and trying to execute the function module from SFP transaction itself.
    after executing its asking for printer. there are three printers configured in my system. No matter which printer i selected, its throwing following error
    Exception SYSTEM_ERROR
    Message ID: FPRUNX  Message number: 001
    Message: ADS: SOAP Runtime Exception: CSoapExceptionTransport :(100101)
    i dont know whether its adobe form problem or printer problem.
    if its printer problem please let me know how can we configure new printer in sap?
    Thanks

    Hi All,
    I changed the printers device settings...That error is not coming now. But when i execute the adobe form it is not showing any output., and goes into endless processing..Can anybody suggest me what can be done?
    Regards.
    Edited by: s m on Feb 9, 2009 1:27 PM

  • Problem in printing amount in different currencies in adobe form

    Hi All,
    I have a requirement to print the amount as space for thousand seperator and comma for decimals.
    I have set the pattern format such that the amount is printing in below format as required.
    Locale---Italian.
    Space as thousand seperator and comma as decimal seperator.
    for example 1 234,45
    As some of the Currencies will not have decimals, now users would like to print amount without decimals. For example in my case amount  printing in KRW ( Korean currency ) is also similar to the above format which is wrong.
    for example Now amount is printing as 55 000,00. But actually it should be 550 000. Similarly for JPY currency also, as it doesnot haves decimals ( checked in TCURX table ).
    I have written some logic in the interface. below is the logic.
    WRITE:
        wa_mhnd1-wrshb to wa_item-wrshb CURRENCY WA_ITEM-WAERS.
    *READ TABLE lt_tcurx INTO lwa_tcurx WITH KEY currkey = wa_item-waers BINARY SEARCH.
      IF sy-subrc  = 0.
      IF lwa_tcurx-currdec = '0'.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      else.
       REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
        REPLACE ALL OCCURRENCES OF '.' in  wa_item-wrshb WITH ','.
    endif.
    ENDIF.
    a. when the write statement gets executed amount will be in ,. ( 1,234.45 )format. Then my logic gets executed correctly. In this company code is CH10 ( EUR ) and KR10.
    b. But sometimes after the write statement gets executed amount will be in ., format ( 1.234.45 ). In this case my logic works, but gives the wrong value. In this case company code is VN10 ( EUR )
    In both the cases currency is EUR.
    Will the decimal format change accordingly based on the company code code currency.Can anyone please tell me why write statement behaved differently.
    Do I need to change any locale in the adobe form, or any other logic to be written in interface. ?  I am trying it out from long time, but not able to fix it. I will have to fix it ASAP.
    Can anyone kindly please help me how to achieve this ?
    Thanks and Regards,
    Karthik Ganti.

    Hi Ayan,
    Thanks for your reply.
    I have already made the locale to default in adobe form and tried. In the interface I have written the logic to print the amount in particluar currency.
    WRITE:
        wa_mhnd1-wrshb to wa_item-wrshb CURRENCY WA_ITEM-WAERS.
    *READ TABLE lt_tcurx INTO lwa_tcurx WITH KEY currkey = wa_item-waers BINARY SEARCH.
      IF sy-subrc  = 0.
      IF lwa_tcurx-currdec = '0'.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
      else.
       REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
        REPLACE ALL OCCURRENCES OF '.' in  wa_item-wrshb WITH ','.
    endif.
    ENDIF.
    I dont know why the above write statement is behaving differently. In one case the value is shown as 1,234.00, but in another test case it shows 1.234,00.
    In both the test cases the currency is 'EUR'. In case if the above write statement works correctly, my issue will be solved.
    Can anyone tell me why the write statement is behaving differently. Will the currency be dependent on any other factor ( for example company code,customer )
    I would like to fix this ASAP.
    Thanks and Regards,
    Karthik Ganti.

  • Issue printing labels in Adobe form via Datamax printer

    Hi,
    We have developed an Adobe form which contains a barcode for the label.
    This label gets printed fine when we print it on the printers in the office headquarters.
    However, at the plant location where it is supposed to be printed, the labels are not getting printed.
    The printer at the plant location is Datamax H-4212.
    Any idea what's wrong? Will the Adobe form need to be changed for this?
    Please help.
    Regards,
    Anusha

    Hi,
    Which device type do you use to create the spool and print? Only the device types described in the following note are possible with Adobe forms:
    685571 - Printing PDF-based forms
    I suggest you try with device type PDF1 and SAPPDFPRNT as per SAP note 1444342.
    Regards,
    Aidan

  • Error in Adobe form based in a xml interface when changing data element

    The adobe form is called from a web dynpro.
    The adobe form contain a page and subforms (positioned y flowered).
    The form worked out perfectally.
    Then edited a descriptive text in a data element, from se11.  The form continues worked out correctelly.
    Then modify a fixed text from the form.  The form is activated.
    Since this modification, the form stopped to work out, informing the following message:
    "WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.pdf on the application server".
    I have updated the nodes of the web dynpro, the xml interface of the form, is all activated and this is still not working.
    Someone could help me? Does anyone know what it could be happened?
    Is there a way to re-generate the form?
    Thanks you very much.
    Regards,

    The data element is char 4.  I have only changed descriptive texts.
    I have take take all the objects to the previous version (data element, wd view, interface xml, adobe form), and the form is still not working.
    Do you have another posible solution for this?
    Thanks you for your answer.
    Kind regards,

  • How to Change the Visible property of Adobe Form Dynamically - URGENT

    Hi,
        I am woking on a scenario where when I click a button in Adobe Form,
    another Adobe Form should be displayed. This is using Web Dynpro Java.
    For this I have made the second form invisible and I want to make this VISIBLE when the button is Clicked. I am unable to get a method where this property of interactive form can be changed.
    Also, If there is any other way this can be done please let me know.
    I am using NWDS 7.0.09 with Adobe Live cycle designer 7.1.
    Thanks in Advance,
    Vasu

    You need to get the handler to the adobe form in your webdynpro program. If you are using webdynpro for java the following code snipped could be useful...
    IWDPDFDocumentInteractiveFormHandler iFormHandler = WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(),"YourAdobeForm");
         // Get appearance setter. 
         IWDPDFDocumentAppearance appearance =
              iFormHandler.getDocumentContext().getAppearance();
         //appearance.
         // Set page layout option
         appearance.setPageLayout(pageLayoutOption);
         // Set show option.
         appearance.setShowOption(showOption);    
         // Hide menu bar.
         appearance.hideMenuBar(true); 
         // Hide tool bars.
         appearance.hideToolBars(true);
         // Hide window controls.
         appearance.hideWindowControl(true); 
         // Show full screen.   
         appearance.showFullScreen(true);
    Reward points if the post is helpful
    Thanks!
    Surya.

Maybe you are looking for