Dynamic Paper format and margin selection

Hello Gurus
Is it possible to dynamically change the paper format of a form based on a parameter pass through the interface?
(FormCalc)
I need to create a form that will be used by the North-America countries (Letter format) and by European countries (A4 format).
1. The paper format should/could be selected by a variable pass through the interface.
     How to change the paper format based on the variable?
2. Top, bottom, left and right margin should be adjusted based on the same variable.
     How to change the margins (top, bottom, left, right) based on the variable?
3. How to adjust the page footer to be at the bottom of the page regardless of the paper format?
Regards
Daniel

Hello Gurus
Is it possible to dynamically change the paper format of a form based on a parameter pass through the interface?
(FormCalc)
I need to create a form that will be used by the North-America countries (Letter format) and by European countries (A4 format).
1. The paper format should/could be selected by a variable pass through the interface.
     How to change the paper format based on the variable?
2. Top, bottom, left and right margin should be adjusted based on the same variable.
     How to change the margins (top, bottom, left, right) based on the variable?
3. How to adjust the page footer to be at the bottom of the page regardless of the paper format?
Regards
Daniel

Similar Messages

  • Error in determining Paper Format for Printout triggering from ABAP Code

    Hi Experts,
    I am trying to trigger a printout from my ABAP code using "NEW-PAGE PRINT ON ...... NEW-PAGE PRINT OFF" statement.
    I am passing the Print Parameters using the FM "GET_PRINT_PARAMETERS" as below:
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
          EXPORTING
            destination    = ls_options-tddest
            copies         = 1
            list_name      = 'Notification'
            list_text      = 'ERROR NOTIFICATION'
            immediately    = 'X'
            release        = 'X'
            new_list_id    = ' '
    *        expiration     =
            line_size      = 79
            line_count     = 23
            layout         = 'X_65_80'
            sap_cover_page = ' '
            receiver       = 'SAP*'
            department     = 'System'
            no_dialog      = 'X'
          IMPORTING
            out_parameters = lv_params.
    But I am facing a problem. Though I am passing X_65_80 to the LAYOUT in the Function Module, it is trying to print in LETTER format. But the specified printer as the printer supports only A4 paper format and as a result, I am not getting any printout.
    Kindly help me with your suggestions to resolve this.
    Thanks in advance.
    Regards,
    Keerthi

    Hi,
    I just found that this problem is even stranger.
    I am able to print the said message on my local printer but when I try to print the same message on a different printer located at a different location, the printout does not get triggered. I am not getting any error messages also in this case.
    What could be the possible reason for this?
    Kindly share your views/experience with me on this one.
    Thank you.
    Regards,
    Keerthi

  • Differences between Internal Format and External Format

    Hi experts,
    When I was importing master data from InfoObject in BW, there's an option selection in the screen of Data Manager. Its name is Choose format and two selectable options are:
    1. Internal Format
    2. External Format
    I looked into help of BPC and it says:
    Choose the Format
    Note:
    The External Format calls the Output conversion routine of the InfoObject.
    The Internal Format does not call the Output conversion routine.
    I'm not sure what is Output conversion routine of the InfoObject. Could you help me to understand it?
    Thanks,
    Tony

    Hi Tony,
    In BPC Data Manager, you will find Conversions, in that you will find
    External and Internal formats.  This means if you are importing a flat file where in
    Example your date format in that file is 31-10-2009, but our Internal format (BPC format)
    will not accept it.  Our internal format is 2009.OCT.  So accordingly you have to
    mention that.  It may be for any dimension like Accounts, Product and so on.......
    I hope this may help you.
    Raghu B.S.

  • FF 6 "Page Setup" missing "Format & Options" and "Margins & Header/Footer" tabs

    Running 6.0.1 or 6.0.2 on FreeBSD 8.2-STABLE when I select File->Page Setup the standard popup window no longer has tabs for "Format & Options" and "Margins & Header/Footer" that I see on Windows XP when running 6.0.2 - this would be okay were it not for the fact that printing (using CUPS on FreeBSD) no longer prints the headers and footers (which I see just fine when I do Print Preview) something in FF 6.x has regressed and is affecting Page Setup.

    Yep, this I know. And have long since done this (probably before FireFox was called Mozilla). In fact my margins are set the way I want them (and have been unchanged for years - at least since 2006). That was the first thing I checked.
    The fact is ever since I upgrated to 6.01 from 5.x (which was a few weeks ago) my printing from FF6 has not included the footers and headers. As I've said, I can see my footers and headers when I perform Print Preview, but they do not appear on the printed page(s), I truly believe this is changed behaviour due to the upgrade to FF6. Next week I will try a screen capture of my Print Preview to include an image for the "Add images:" feature when posting a reply, but I don't know how to show the physical printed page lacking those same headers and footers short of shooting a photograph with a macro lens and including that as an image. Therefore for now, you will just have to take my word for the fact of missing footers and headers. Also, next week I would be able to post here my about:config settings for the margin preferences which I assure you have remained unchanged for several years. FWIW, printing from Opera 11.11 to the same printer from the same workstation where FF6 is running does include my footers and headers. To my thinking this fairly much puts the blame for this problem on FF6. Thanks.

  • How can I print multiple copies of the same photo onto one sheet of paper?  Do I have to Duplicate the photo in iPhoto and then select them all?

    How can I print multiple copies of the same photo onto one sheet of paper?  Do I have to Duplicate the photo in iPhoto and then select them all?

    no - you simply have to select the option to print mucliples of a photo on a page
    select the photo and go to the file menu ==> print - select the printer, paper size and print size and click customize - in the tool bar click on the settings icon (the gear looking thingy) and select "multiple of the same photo per page" and the preview will reflect this option showing a full page of the selected size photos
    LN

  • HT1473 I get a message the songs are in wma format and iTunes will convert them to AAC format - do I select Convert or Skip?

    I get a message the songs are in wma format and iTunes will convert them to AAC format - do I select Convert or Skip. I ripped new CDs I bought using Windows Media Player and they are saved on my C drive. I have done this before but cannot do it now.

    If you want to play them in iTunes, choose "Convert."  This will allow iTunes to create new AAC versions and add those new versions to your iTunes library.
    The original WMA files will still be in the folder(s) wherever they currently are.  iTunes will ignore the WMAs once it has the converted versions.  It is then up to you if you wish to keep or delete your WMA origninals.

  • HT204135 I have two Epson printers and one Canon printer. Why am I unable to access the same print options on my MacBook Pro as I could on mp PC i.e. select paper type and print quality?

    I have just purchased a MacBook Pro as my PC has finaly died.
    I have three Inkjet printers i.e. Epson Photo PX700W Epson Photo R340 and a Canon Pixma ip4600 which I connected to my Mac and the print drivers were automatically downloaded. Now when I print using any of the printers the functionality PC i.e. Choice of paper and print quality settings. Is this all I get when using the Mac OS lion or should the functionality be on a par with Windows?

    Depending on the application you are printing from, you may need to press the Show Details button in the print dialog to see all of the additional driver menus.
    The image below is for the extended print dialog of TextEdit and for a Canon MP990 printer. The Show Details button is on the bottom of the print dialog and will change to Hide Details when selected. And with the menu changed to Quality & Media, you have paper options and print quality settings.

  • How to know which radiobutton is selected in case of dynamic UI generation and how to pass it to back end?

    This is how I have written for dynamically generating radiobuttons. I have some categories on left view, by selecting which, i will get corresponding questions and it generates 5 options, and user selects one and I need to pass it to back end. I am using IModifiableSimpleValueSet for filling the radiobuttons.
    ISimpleTypeModifiable myType = wdThis.wdGetAPI().getContext().getModifiableTypeOf("Ans.option");
      IModifiableSimpleValueSet values = myType.getSVServices().getModifiableSimpleValueSet();
    values.put(d,wdContext.nodeAns().getElementAt(d).getAttributeValue("option").toString());
    Kindly help, if I am missing something.
      IWDRadioButtonGroupByKey radioKey = (IWDRadioButtonGroupByKey)view.createElement(IWDRadioButtonGroupByKey.class,           "ansRadio"+radio_count++);
      IWDMatrixHeadData matrixHead_radio = (IWDMatrixHeadData)radioKey.createLayoutData(IWDMatrixHeadData.class); 
      IWDAction radioAction = wdThis.wdCreateAction(IPrivateRightView.WDActionEventHandler.SELECT_ANS, radioKey.getId());
      wdComponentAPI.getMessageManager().reportSuccess("radio id"+radio_count);
      radioKey.bindSelectedKey("Ans.option");
      radioKey.mappingOfOnSelect().setString("optionID", radioKey.getSelectedKey());
      wdContext.currentContextElement().setSel_ans(wdContext.currentAnsElement().getOption());
      radioKey.setColCount(1);
      questContainer.addChild(radioKey);

    Hi Jun,
    I have to prepare a questionnaire. Some set of questions will be there in backend having 5 options. Based on category I have to fetch questions and its corresponding answers. Ans is the node which I am filling with choices, based on questions.

  • I am running MS Office for Mac 2008 on my MacBook Pro.  I do not have the Standard and Formatting toolbar fixed into position, as I would expect and would like.  I can access them via the View menu, where I have to select and de-select them before I can g

    I am running MS Office for Mac 2008 on my MacBook Pro.  I do not have the Standard and Formatting toolbar fixed into position, as I would expect and would like.  I can access them via the View menu, where I have to select and de-select them before I can get them to display, but lose them when I log off. Can anyone help?  I have tried all the usual and supplied help facilities to no avail.  Thanks

    Post the question in Microsoft's own Office for Mac forum.

  • How to print text in paper format iin smartforms

    Hi all,
      I want a question that  how to print text in paper format like  paper divides into 2 parts and if the firstpart is full of text i.e., it exceeds the first page the text will be displyed in the second part of the first page.
    Usefull answers will be awarded.
    Thanks all...

    Hi,
    U create two windows in the page and same as like second page.
    but in first page first window select the condition print only on first page.
    in second window select conditin print only on second page.
    first try without creating a secondpage. if that doesn't workout create secondpage and try.
    Assign points if useful.
    Regards
    (YUGANDHAR.P)

  • How to use MM/YYYY Format in the selection Screen?

    There is this program RMCB0300 where the date format in the selection screen has MM/YYYY Format.
    I am working on a report which requires it "Period" Field in the selection screen to be in the same format.
    However, i am trying to give the select option as " SL_SPMON FOR S031-SPMON MODIF ID PER." and declaring S031 table in the declaration part.
    But still, its not been able to provide me F4 help in the inpur screen.
    Can someone please provide me some guidance in this regard?

    Hi,
    the following works for me..
    *& Report  ZPMONAT                                                     *
    report  zpmonat                                 .
    tables: s031.
    selection-screen begin of block abc.
    select-options:  sl_spmon for s031-spmon.
    selection-screen end of block abc.
    at selection-screen on value-request for sl_spmon-low.
      perform monat_f4.
    at selection-screen on value-request for sl_spmon-high.
      perform monat_f4.
    start-of-selection.
    end-of-selection.
    *&      Form  monat_f4
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form monat_f4 .
      data: begin of mf_dynpfields occurs 1.
              include structure dynpread.
      data: end   of mf_dynpfields.
      data: mf_returncode   like sy-subrc,
            mf_monat        like isellist-month,
            mf_hlp_repid    like sy-repid.
      field-symbols: <mf_feld>.
    * Wert von Dynpro lesen
      get cursor field mf_dynpfields-fieldname.
      append mf_dynpfields.
      mf_hlp_repid = sy-repid.
      do 2 times.
        call function 'DYNP_VALUES_READ'
          exporting
            dyname               = mf_hlp_repid
            dynumb               = sy-dynnr
          tables
            dynpfields           = mf_dynpfields
          exceptions
            invalid_abapworkarea = 01
            invalid_dynprofield  = 02
            invalid_dynproname   = 03
            invalid_dynpronummer = 04
            invalid_request      = 05
            no_fielddescription  = 06
            undefind_error       = 07.
        if sy-subrc = 3.
    *     Aktuelles Dynpro ist Wertemengenbild
          mf_hlp_repid = 'SAPLALDB'.
        else.
          read table mf_dynpfields index 1.
    *     Unterstriche durch Blanks ersetzen
          translate mf_dynpfields-fieldvalue using '_ '.
          exit.
        endif.
      enddo.
      if sy-subrc = 0.
    *   Konvertierung ins interne Format
        call function 'CONVERSION_EXIT_PERI_INPUT'
          exporting
            input         = mf_dynpfields-fieldvalue
          importing
            output        = mf_monat
          exceptions
            error_message = 1.
        if mf_monat is initial.
    *     Monat ist initial => Vorschlagswert aus akt. Datum ableiten
          mf_monat = sy-datlo(6).
        endif.
        call function 'POPUP_TO_SELECT_MONTH'
          exporting
            actual_month               = mf_monat
          importing
            selected_month             = mf_monat
            return_code                = mf_returncode
          exceptions
            factory_calendar_not_found = 01
            holiday_calendar_not_found = 02
            month_not_found            = 03.
        if sy-subrc = 0 and mf_returncode = 0.
    *     ASSIGN (MF_DYNPFIELDS-FIELDNAME) TO <MF_FELD>. " ==>> note 148804
    *     <MF_FELD> = MF_MONAT.
          call function 'CONVERSION_EXIT_PERI_OUTPUT'
            exporting
              input  = mf_monat
            importing
              output = mf_dynpfields-fieldvalue.
          collect mf_dynpfields.
          call function 'DYNP_VALUES_UPDATE'
            exporting
              dyname               = mf_hlp_repid
              dynumb               = sy-dynnr
            tables
              dynpfields           = mf_dynpfields
            exceptions
              invalid_abapworkarea = 01
              invalid_dynprofield  = 02
              invalid_dynproname   = 03
              invalid_dynpronummer = 04
              invalid_request      = 05
              no_fielddescription  = 06
              undefind_error       = 07.           "<<== note 148804
        endif.
      endif.
    endform.                                                    " monat_f4
    Regards,
    Suresh Datti

  • Display results from dynamic query created and executed inside procedure

    Hi;
    I have created this code:
    CREATE OR REPLACE PROCEDURE RunDynamicQuery(Var1 IN VARCHAR2, Var2 IN VARCHAR2, VAR3 IN VARCHAR2) AS
    -- Do something
    -- That ends up with a variable holding a query.... (just an example)
    MainQuery :='select sysdate from dual';
    end RunDynamicQuery;
    How can I run this procedure and see the result on the dymanic query generated inside it?
    BEGIN
    compare_tables_content('VAR1','VAR2','VAR3');
    END;
    Expected Output for this given example:
    20-05-2009 11:04:44 ( the result of the dymanic query inside the procedure variable MainQuery :='select sysdate from dual';)
    I tested with 'execute immediate':
    CREATE OR REPLACE PROCEDURE RunDynamicQuery(Var1 IN VARCHAR2, Var2 IN VARCHAR2, filter IN VARCHAR2) AS
    -- Do something
    -- That ends up with a variable holding a query.... (just an example)
    MainQuery :='select sysdate from dual';
    execute immediate (MainQuery );
    end RunDynamicQuery;
    BEGIN
    compare_tables_content('VAR1','VAR2','VAR3');
    END;
    Output:"Statement processed'' (no sysdate displayed ! )
    Please consider that the collums in the query are always dynamic... PIPELINE Table would not work because I would need to define a container, example:
    CREATE OR REPLACE TYPE emp_tabtype AS TABLE OF emp_type;
    FUNCTION RunDynamicQuery (p_cursor IN sys_refcursor)
    RETURN emp_tabtype PIPELINED
    IS
    emp_in emp%ROWTYPE;
    BEGIN
    LOOP
    FETCH p_cursor
    INTO emp_in;
    EXIT WHEN p_cursor%NOTFOUND;
    PIPE ROW (...)

    That would be a nice solution, thanks :)
    ''For now'' I implemented like this:
    My dynamic query now returns a single string ( select col1 || col2 || col3 from bla)
    This way I don't have dynamic collumns issue, and from business side, this ''string'' format works for them.
    This way I can use the pipelines to get the result out...
    OPEN myCursor FOR MainQuery;
    FETCH myCursor
    INTO myRow;
    WHILE (NOT myCursor%notFound) LOOP
    PIPE ROW(myRow);
    FETCH myCursor
    INTO myRow;
    END LOOP;
    CLOSE myCursor;

  • Regarding Download data in MS Excel format and Check box

    Hi Friends
    In my Project some task is here i.e. select check box of the particular Customer number click on submit button. That time display of those customer details
    How we can do this if have any coding of this application can you sent me.
    And one more query
    One form having some data click on submit button that data will display in Excel format and Download data in MS Excel format
    Can you tell me how to work on these two concepts?
    Regards
    Vijay

    Dear Vijay,
    Please go through the [Download data in MS Excel format|http://wiki.sdn.sap.com/wiki/display/WDJava/ExporttoExcel(WithoutthirdpartyAPIs)]
    to download the table contents to MS Exel.
    & Also go through [How to Add Dynamic Checkboxes in a Web Dynpro Java |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90915916-c158-2c10-6fa0-f0e25f3ccd6b?quicklink=index&overridelayout=true] for check bok UI.
    Warm Regards,
    Upendra Agrawal

  • How to set headers, footers, and margins in pages?

    I'm using the pages app to write a paper. An I want to set my headers, footers, and margins to 0. So that way they won't show in my Microsoft word. Can anyone help me with that? I'm also blind an I use voiceover. So I would need step by step instructions on what to do. Thank u.

    You can create left and right single quotes with option + }, and shift + option + }, respectively.
    Double quotes work the same way using the { character substituted above.
    Menu > Format > Font > Baseline:
    Superscript is control + command and +
    Subscript is control + command and -

  • Printer forcing the paper format

    Hi ,
    A SAP script form which has the format of a DIN4 is being printed out in a printer which has US letter settings. The margins have been accomodated such that the content is visible if printed in both the US letter as well as DINA4 formats. However the printer is being forced to re set the settings from US letter to A4. Has any one encountered this before and how to resolve this without changing the SAPscirpt Paper format (DINA4).
    Cheers
    Ksq

    hi
    in SPAD check whether u have cofigure all the page formats
    SPAd>full Administration>device types-->Pagef format..
    i don't have comlete idea but as per my knowledge these tholud be all page formats has to be difined in it

Maybe you are looking for

  • Restriction of GR & IR for PO with specific document type

    Hi, How we can restrict doing Goods Receipt & Invoice Receipt for a Purchase order, instead they do the payment directly for the Purchase order item in FI. We need to restrict GR & IR for PO with particular document type. Regards, Srinivas

  • How do I sync an audio book in itunes with my iphone

    I downloaded an audio book from Amazon/Audible and it is currently in my itunes library.  When I try to sync with my iphone, I am unable to find my list of audiobooks for purposes of syncing.  When I am in the Sync function in itunes, I see music, vi

  • Set Empty Managed Metadata Column - Working in 2010 and not in 2013

    I have seen posts similar to mine below but am still not finding a solution. I understand that setting an already populated managed metadata column can be problematic using SPD. However, my column is empty, and what works in 2010 is not working in 20

  • Can't drag mp3 into GB '08

    Whenever I mention this, I seem to get answers from folks who can't understand why I'm having this problem, but I am unable to import mp3 files into GB '08, just the same issue I had with GB '06. I drag the file, I drop it, I see that striped progres

  • How to use Counter B0 and B1 in the same time

    Hi, I am a rookie, and first time post question at here. my Card is DAQcard-1200, and data acquisition code is based on MFC of VC6. now I used counter B0 as timer for data sample. how can i use B1 as a suqare wave generator? Thank you.