Adobe form is going to Spool directly want a print preview

HI Experts,
I have created a class where I am calling a standard Material document print form WOST_WSGM_MATDOC_PDF but it is directly going to spool.
NOTE : I am calling this class method in one of my POWL Feeder class which is linked with standard GR print application and I want it to be previewed for user to save.
Please refer the code below.
  DATA iv_funcname TYPE  funcname.
  CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
      i_name              = 'WOST_WSGM_MATDOC_PDF'"gc_mat_doc_form_name
    IMPORTING
      e_funcname          = iv_funcname  .
  DATA iv_outputparams TYPE  sfpoutputparams.
  CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
      ie_outputparams = iv_outputparams
    EXCEPTIONS
      cancel          = 1
      usage_error     = 2
      system_error    = 3
      internal_error  = 4
      OTHERS          = 5.
  IF sy-subrc <> 0.
Implement suitable error handling here
  ENDIF.
  DATA fp_docparams TYPE sfpdocparams.
  DATA fp_formoutput TYPE fpformoutput.
Now call the generated function module
  CALL FUNCTION iv_funcname
    EXPORTING
      /1bcdwb/docparams  = fp_docparams
      mat_doc_header     = es_mkpf
      doc_type_txt       = es_t003t
      vendor_data        = es_lfa1
      plant_data         = es_t001w
      move_plant_data    = es_t001w_move_plant
      mat_doc_item_tab   = et_mseg
      mat_doc_printgrgi  = et_printgrgi
    IMPORTING
      /1bcdwb/formoutput = fp_formoutput
    EXCEPTIONS
      usage_error        = 1
      system_error       = 2
      internal_error     = 3
      OTHERS             = 4.
  IF sy-subrc <> 0.
    CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR'
      IMPORTING
        e_adserrstr = ls_adserrstr.
  ENDIF.
Close spool job
  CALL FUNCTION 'FP_JOB_CLOSE'
    EXCEPTIONS
      usage_error    = 1
      system_error   = 2
      internal_error = 3
      OTHERS         = 4.
When  I am running this class individual then I am getting the print preview but when I am running it through portal by calling it in the feeder class then It is going directly to SPOOL request.

try passing PREVIEW field  "X" in  FP_JOB_OPEN.
Uma

Similar Messages

  • 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?

  • Call for adobe form is going for dump for multiple users

    hi,
    i am calling an adobe form in a program i.e. for multiple users. now my problem is.....
    3 people are using same tcode to generate the adobe form output for different data. but when they click at a time on the button to generate the adobe output, then adobe form is coming for only one user and it is going for dump for other users.
    and this dump is coming because of exception "CX_FP_API_INTERNAL" in funtion module FP_FUNCTION_MODULE_NAME which i am using to get the function module name of the adobe form in my program.
    can u please give me some solution to rectify this issue....

    That's nothing!
    An engineer and I contacted Adobe technical support by phone to ensure the PC I was having custom built was configured to its optimum. They advised XP64 as the best operating environment. After that discussion we had to completely revise procurement, etc to get the bits and compatible XP64 compatible software, putting the build project back a few weeks as well, Imagine how I laughed when I found out on one of these forums that XP64 is the worst choice and totally unsupported by CS4!
    I have written to Shantanu Narayen, Adobe CEO and didn't even get an acknowledgement I raised this last week on the Adobe stand at BVE and was told they'd get someone to contact me asap but guess what, niet...! To be fair there has been one Adobe executive that recognises the problem and the damage poor customer support is causing the company; he has been as helpful as he can. Unfortunately, it seems the overall Adobe culture at the top is "get the money and run". If your problem goes beyond what's already on their web pages, tough luck!
    Regards,
    Graham

  • Adobe form company logo image color is distorted when printing

    Hi all, I have added an graphic to my pdf it looks good when I view the pdf. It also prints fine when I open the pdf and then print it. The problem is when the pdf is sent directly to the printer without previewing it, the image will print but the colors will be distorted.
    Any help is appreciated:). Thanks.
    Edited by: Katie Doody on Jan 4, 2012 12:16 PM
    Edited by: Katie Doody on Jan 5, 2012 7:43 AM

    Please try with the below steps:
    1) Open the Pdf which you want to Print.
    2) Select Print button.
    3) From the dialog box, select Properties.
    4) then select Advanced.
    5) Click on  "Edge-To-Edge" and from the drop-down select "Enabled"
    Find the screen-shot below for reference....
    Naveen

  • How to prevent SE80 test on adobe form from going to https

    I originally configured our DEV ADS system with SSL.  Now, we decided not to use SSL so I thought I undid everything.  However, when I go to SE80 and run a test on WDR_TEST_ADOBE the test automatically tries to go to an https form instead of http.  Do you know what I could have missed?  What triggers the test to go to http or https?
    I changed the ADS SM59 connection.  I removed the STRUST connection.  In JAVA I changed the destination; removed the ADSCERTS view; removed the certificate from ADSUSER.
    Thanks for your assistance.
    Peggy

    Yes it does, but it does not attempt to re-execute the PL/SQL default for the Tabular Form Element that's having the issue.
    But I did manage to find a workaround. There's an unconditional branch back to the tabular form. In the grid of the "Edit All" for the branches, I manually added "::&DEBUG." to the Action. The passing of the DEBUG variable in the URL doesn't appear to be editable in the individual branch if it's target is a "Page in this Application". And setting the target to "URL" will get automagically reset back to "Page in this Application", thus the DEBUG passing can only apparently be done in the Edit All screen. Thus, my confusion! :)
    Thanks for your reply!
    Rich

  • Debugging standard adobe forms

    Hi experts,
    i'm working on SCM 5.0, i have requirement to make some modifications to the Purchase Order layout used in SNC(ICH); to do this i want to debug '/SCA/PO' (adobe form provided by SAP), it uses '/SCA/PO' interface but i'm not able to debug this form or interface.
    Can anyone please suggest me how to do this or any workaround for this problem.
    Any help is appreciable.
    Thanks & Regards,
    Tarun Kumar

    Hi,
    If i remember correctly then I think you should be able to see the adobe form only when you click on the overview/print preview button check under that action but ai  not sure that you would be able to change then entire form itself. May be you should ask your fictional consultant that where does he configure this adobe form.
    Since in e-rec we have different adobe forms for different purposes and i think some where these forms are configured against each process...
    Are you looking to change at the WebDynpro  component level or from adobe form level itself. You can access the form from SFP transaction.
    Regards
    Pavan

  • Standard Adobe Forms in webdyn pro??

    Hello,
    I'm having a problem, I was asked that utilized the following standard webdyn pro's to change the LOGO of the company. Any idea which forms adobe used in these cases?
    Webdyn pro's standard requested:
    WDC_WSAM_SHMAE_SEARCH_MAT
    WDC_WSGM_MAT_DOC_PRINT
    WDC_WSPO_PO_DOC_PRINT
    Another question is where are these configured webdyn pro in spro, any ideas?
    Please Help me.
    Thank you

    Hi,
    If i remember correctly then I think you should be able to see the adobe form only when you click on the overview/print preview button check under that action but ai  not sure that you would be able to change then entire form itself. May be you should ask your fictional consultant that where does he configure this adobe form.
    Since in e-rec we have different adobe forms for different purposes and i think some where these forms are configured against each process...
    Are you looking to change at the WebDynpro  component level or from adobe form level itself. You can access the form from SFP transaction.
    Regards
    Pavan

  • Passing value from Webdynpro ABAP to Adobe form..

    Hi experts,
            In first view of web dynpro, im getting employee id as input and after clicking the create new button, an adobe form is called
    to create the employee details ( in form i used the submit button and i stored the details ). so, in tat form i used the employee id as read only mode and it has to display the value which i given as input. But in tat form im not getting the value from web dynpro..
    can anyone plz help me out for this..
    Thanks in advance..

    Hi,
    Try to set your values in Method->"wddomodify" of the View in which Adobe Form is present. If you want to pass values from one view to another then check this link [Passing Local Parameters between views in an ABAP Web Dynpro Application|http://wiki.sdn.sap.com/wiki/display/stage/PassingLocalParametersbetweenviewsinanABAPWebDynproApplication] or use Context declared in Component Controller.
    Regards
    Pradeep Goli

  • Language Translations of Adobe Forms

    Hi,
    My question is regarding language translations in Adobe Form. I have translated the adobe form in various languages, now I want to check in how many languages I already translated? Is there any way by which I can check the translations??
    Thanks & Regards
    Rafi

    HI friend,
    Just try this transaction SE63.
    In that There are menu called GOTO and WORKLIST.
    Check the options in those two. I don't have sufficient authorization to check the things. I think it will provide you the required information.
    Please revert back me if you find a solution or if i am wrong. SO that i will try some other option.
    Thanks,
    Sri Hari

  • WebUI Print Preview (Action Definition - Print) for Adobe Interactive Forms

    Hi All,
    As mentioned in subject, how to define an CRM Action Definition (with or without Action Condition) to Print an Adobe Interactive Forms. We know how to define a setting for Print Preview function in CRM WebUI via Action Definition - Smartforms Print. Now we want to print preview from CRM WebUI document on Form designed in Adobe Interactive Forms (tx SFP).
    We have tested using Action Definition - External Communication, we can set the AIF form here. We tested in GUI (tx crmd_order) and it works. But when testing preview on CRM WebUi it shows "Error in Smartforms".
    Somehow it still detect as Smartforms instead of Adobe Interactive Forms.
    We prefer if this preview can be done via Action, because it is straight forward function for printing.
    Should we use Action - Method Call instead ? How is the approach to do it in Action - Method Call ?
    Any one try this before? Appreciate your sharing here.
    Thx & Rgds,
    Gun.

    Hi Gunawan,
    if I got you right, what you want is: Call your AIF when someone clicks on the "print preview" button in CRM WebClient. This should all work using a print action like with normal SmartForms.
    I faced this problem some months ago on CRM 6. The problem here was quite simple: The SmartForm interface and the one of AIF are not compatible. Thus the service used for calling the print action from WebClient failed.
    For handling this problem I enhanced the print service to call AIF correctly.
    In customizing I used print actions that call a method.
    As mentioned this lays back some months already. Maybe SAP came up with a better solution by now. I saw AIF to have multilple interface types. One is an interface compatible with SmartForms. Probably you can use this one and the print service will work without any enhancements or modifications.
    cheers Carsten

  • Can Adobe Forms link to multiple databases?

    I've created a form for an air charter company. I need it to link to several different databases. Can Adobe Forms do this?

    Not directly, no. Only if that form was created in LiveCycle Designer.
    It used to be possible with forms created in Acrobat as well, but Adobe
    removed that possibility for some reason.
    On Fri, Dec 5, 2014 at 4:38 AM, apimachinery <[email protected]>

  • HR-Form (PE51) with Adobe Form

    Hi All,
    does anybody has an idea how to show a standard hr-form (created in PE51) in the portal with (as) adobe form? We just don't want to re-build the existing logic from hr-form to adobe.
    Do you have some docs/tutorials?
    Thanx a lot

    Hi,
    1.just open the form in theTCODE:SE71.
    2.Select the window where you want to provide the logo.
    3.After that select edit-->TEXT ELEMENTS.
    4.Go to-->Change editor
    5.Insert->graphics>select stored document server -->
    select the logo and enter.Logo updated.
    6.For font ,modify the character format or else create new character format.
    Regards,
    If helpful reward with points(Don't forget).

  • How can i find the adobe form translations

    Hi Friends,
    how can i find the adobe form translations?
    i mean i want to know in how many languages my adobe form has been translated?
    is their any report or is their any technique to find the translations........................
    Thanks,
    Harish.K

    Hello Harish,
    To find the translation of Adobe form is nothing but to find the labels or texts used in this adobe form in various languages. This will give you an idea on how many languages your adobe form has been translated.
    So to find the translations in different languages, you have to go to Context node of the Adobe form. Then go through the text nodes which are used as labels. These will be normally stored as Standard texts in SO10.
    For example. Take the text name of any one text node.
    1) Go to SE38.
    2) Type program RSTXTRAN.
    3) Let the Text key - object be TEXT.
    4) Then enter this text name in the field Text key - name. I have put the sample standard text ZTEST_ADOBE as shown below.
    5) Let the Text key - ID be ST.
    6) In Text key - language, Enter *  (i.e enter the Asterisk) because you want to find out all the languages.
    The screen parameters will be as shown below.
    7) Now Execute this report.
    8) It will show all the various languages in which this particular standard text is used which is nothing but the Adobe form is being used in these many languages. For example, the standard text ZTEST_ADOBE is used in 3 languages, English, German and Spanish as shown below. It will look as shown below.
    Note: This will give you the more or less the overall idea of the form that has been used in these many languages. But also make sure the standard text with particular language is also linked with the Transport Request. Because there are chances that the text was created in a particular language but was never used.

  • Adobe form not visible

    Dear all,
    I am developing application based on adobe forms but I am not able to see the same after deploymnet. It's deploying properly also I am able to get the message printed but the adobe form is not visible. I want to know is there anything I need to check or it's some server problem. Please help me in this regard.
    Thanks in Advance
    Gaurav Bhardwaj

    Hi Gaurav,
    Below is the link to download ACF:
    Use this one:
    https://sapmats-de.sap-ag.de/download/download.cgi?id=F9RUZ3Q7TERUBSMHSXWT3UMEM59IJYIPA931VQD32A1UNAKZ6B
    Regards,
    Arafat
    Edited by: Arafat Farooqui on May 9, 2008 9:48 AM
    Edited by: Arafat Farooqui on May 9, 2008 9:50 AM

  • Sfp adobe form for production order

    I need to supress printing a field within an adobe form base upon a condition.  I customized print program to allow printing production orderwhen order type is RM01 but I do not want to print the barcode field OPSDATA-RUECK.  I need to know how to supress printing under certain circumstances.
    How do I condition a field to prevent printing?

    Hi Vijay
    the printers first need to be configured by the BASIS consutant who will assign printers to Users based on their Roles and authorizations and i think this is a Config activity and needs to be transported
    also from the menu go to user profile, under own data and under defaults Tab, you need to assign the printer here and save it and first log off and then i think it should help
    also check in the Control key setting in OPL8 which you have used for routings operations whether they allow printing shop floor papers and confirmations and time tickets based on your requirements
    this should probably help
    if useful plese reward points
    regards

Maybe you are looking for