Print a screen of a custom transaction.

Hi ABAPers, How to print that particular dialog screen on which I have the PRINT icon.which FM has to be used to print that particular screen.Kindly help

Hello,
Please refer SAP Link sample code.
Printing from within the Program (SAP Library - BC - ABAP Programming)
REPORT SAPMZTST NO STANDARD PAGE HEADING.
DATA: VAL,
      PRIPAR LIKE PRI_PARAMS,
      ARCPAR LIKE ARC_PARAMS,
      LAY(16), LINES TYPE I, ROWS TYPE I.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
     IMPORTING
          OUT_PARAMETERS         = PRIPAR
          OUT_ARCHIVE_PARAMETERS = ARCPAR
          VALID                  = VAL
     EXCEPTIONS
          ARCHIVE_INFO_NOT_FOUND = 1
          INVALID_PRINT_PARAMS   = 2
          INVALID_ARCHIVE_PARAMS = 3
          OTHERS                 = 4.
IF VAL <> SPACE AND SY-SUBRC = 0.
  SET PF-STATUS 'PRINT'.
  WRITE '   Select a format!'.
ENDIF.
TOP-OF-PAGE DURING LINE-SELECTION.
  WRITE: 'Page', SY-PAGNO.
  ULINE.
AT USER-COMMAND.
  CASE SY-UCOMM.
    WHEN 'PORT'.
      LAY = 'X_65_80'.
      LINES = 60.
      ROWS  = 55.
      PERFORM FORMAT.
    WHEN 'LAND'.
      LAY = 'X_65_132'.
      LINES = 60.
      ROWS  = 110.
      PERFORM FORMAT.
  ENDCASE.
FORM FORMAT.
  CALL FUNCTION 'GET_PRINT_PARAMETERS'
       EXPORTING
            IN_ARCHIVE_PARAMETERS  = ARCPAR
            IN_PARAMETERS          = PRIPAR
            LAYOUT                 = LAY
            LINE_COUNT             = LINES
            LINE_SIZE              = ROWS
            NO_DIALOG              = 'X'
       IMPORTING
            OUT_ARCHIVE_PARAMETERS = ARCPAR
            OUT_PARAMETERS         = PRIPAR
            VALID                  = VAL
       EXCEPTIONS
            ARCHIVE_INFO_NOT_FOUND = 1
            INVALID_PRINT_PARAMS   = 2
            INVALID_ARCHIVE_PARAMS = 3
            OTHERS                 = 4.
  IF VAL <> SPACE AND SY-SUBRC = 0.
    PERFORM LIST.
  ENDIF.
ENDFORM.
FORM LIST.
  NEW-PAGE PRINT ON
    NEW-SECTION
    PARAMETERS PRIPAR
    ARCHIVE PARAMETERS ARCPAR
    NO DIALOG.
  DO 440 TIMES.
    WRITE (3) SY-INDEX.
  ENDDO.
ENDFORM.
Regards,
Sameer

Similar Messages

  • Custom Transaction using RSDMD to go to MD Screen Directly

    Hi,
    I have created a custom transaction for Master Data Maint. which uses RSDMD and the InfoObject name.
    By using this custom transaction I can reach to
    the screen to filter the records. Here I click on
    execute (F8) to reach the actual data.
    I used SHD0 to create this custom-transaction.
    How do I include the "execute / F8" functionality in my custom transaction, so that when I use custom-transaction I can go directly to the data.
    Would appreciate your help.
    Thank you,
    Pramod.

    Hi Mark,
    Your design of going for Name01, Age01 , Date01.....
    is absolutely correct. Stdandard SAP even does the same thing.
    Regarding the dump...you can do one thing..try referring
    standard infotypes which uses table control like Basic pay infotype 0008.
    If you get any help from there then its fine..or just post send the dump analysis (point 3 of dump) to forum i guess from that definitely we can conclude at the reason for dump...
    Enjoy SAP.
    Pankaj

  • Attaching the documents to customer transaction screen

    Hello Experts,
    Greeting of the day!!
    One of my client wants to attached a scan document of received transaction in a Customer transaction screen, Now i m confuse whether this is possible in oracle Applications R12.1.3 or not?
    If yes then please guide me or give any reference??
    Oracle Application : R12.1.3
    Database : Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    Thanks,
    Atul

    Hi Helios,
    I found the solution on oracle application screen itself.
    Oracle Apps already provided the attachement future in the application itself.
    VIEW ----> ATTACHEMENTS.. here we can attach a any type of document for customer transaction or supplier invoice.
    Thanks,
    Atul Ramteke

  • Print Current screen ( Dailog custom screen)

    Hi Experts,
       I have urgent requirement lilke ,I have dovelped one Custom screen using SE51 and Screen no : 9001,9002.
    When user enters values in the current screen and then he will select the Print options from the standard tool bar which i activated and when i select that print options it should pring the current screen which i develoloped ,,very urgent experts and gr8 helpfull to me,,,,,
    Pls see below code which i was written ,,it is not print the screen...
       CALL FUNCTION 'GET_PRINT_PARAMETERS'
            EXPORTING
              report                 = sy-repid
              mode                   = 'CURRENT'
              immediately            = 'X'
              user                   = sy-uname
            IMPORTING
              out_archive_parameters = arc_params
              out_parameters         = params
              valid                  = l_valid
            EXCEPTIONS
              archive_info_not_found = 1
              invalid_print_params   = 2
              invalid_archive_params = 3
              OTHERS                 = 4.
    Pls suggest me or how to print the current screen and send a code........
    Venkat

    I don't know whether u can achieve it through programming or not but
    If u want to print the screen in ur PC's window printer then press "Customizing of local Layout (Alt + F12)" button . Then press Hard Copy  from the pop up window...if ur printer settings are correct then it will print ur screen in the Window's local printer.
    Regards,
    Joy.

  • Avoid the printing of Pallet lebel address in transaction VL02N.

    Hi Friends,
    We  confirms a T/O via transaction LT12. Once the T/O is confirmed , then i opens up Transaction VL02n and u201CSAVESu201D the screen. Once I hits save, the system will generate the u201CINTERNAL PACK LISTu201D and the u201CPALLET ADDRESS LABELSu201D automatically. The Internal Pack list is fine the way it isu2026.
    Once I saves his transaction in VL02n, I would like a box to come up that asks  to print pallet labels and if so, how many. Then i would save the screen and, if selected , the pallet labels would print.
    Can anyone tell me how to do it? weather to use userexit , customer exit or badi?
    Plz help me..
    Thanks and Regards,
    Rakesh.

    I would probably pick an unused delivery header field to store the number of pallet labels the user wants. This will be updated by a popup window during a user exit or BAdI implementation. BAdI LE_SHP_DELIVERY_PROC / method SAVE_DOCUMENT_PREPARE or the good ole' USEREXIT_SAVE_DOCUMENT_PREPARE in SAPMV50A could be utilized for this.
    Then a proper VOFM requirement routine assigned to the print conditions could check the header field value. If it is not 0, the condition is fulfilled and the pallet label print request is created.
    We'd want the field ANZAL in NAST to be set to the number of labels entered by the user... I don't know off the top of my head where can this be done while the output request is generated during the document save process, so this needs a bit of investigation but it's doable if I remember correctly.
    Alternatively if setting NAST-ANZAL doesn't work out, the print progam could handle the number of the labels that are printed when the print request is processed.
    There is no need to create a custom transaction to achieve this...

  • Creation of custom Transaction for confirm goods in SRM

    Hi Experts
    i need to create a custom transaction same as standard one  for confirm goods/servics in SRM portal.
    In sap GUI, the transaction is BBPCF03
    Can you please suggest any good sources where i can learn to Custome Tcodes for my requirement
    Thanks in advance
    Edited by: kittu reddy on Nov 19, 2008 7:27 AM

    Hi Hussaini,
    Here are the steps.
    1> Customization needs to be completed in SPRO. Logistics Execution -> Mobile Data entry section. Also compare entries with LM01 for understanding.
    2> In the 'Define menu management', you can create dynamic menus. For Menu or transaction type, if you enter "1", a menu appears; if you enter "2", a transaction appears. Custom transactions can be created and assigned here.
    Once that is done, when you execute LM01 you will see your custom transactions come up. Make sure that these are created keeping in mind the RF device screen size and limitations.
    Regards,
    Anand.

  • How to Run a Custom Transaction in Back Ground after give the Input?

    Hi,
        I have problem that how to execute a Custom Transaction in Back Ground after end user will save a variant for input. In my Transaction there is no menu to save a Variant & to Execute in Back Ground.
    Please suggest me how to do this in my Custom Transaction.

    Hi Ramana,
    what kind of report you want to  execute? the report is Executable Report or Modulepool prog. ??
    if it is a executable program so when u execute (F8) from SE38 when u find the selection-screen in the menu bar ->Program ->Execute in Background( F9) option exits there u can schedule your report in Background or else use toce SM36 ( Define Background Job).
    Why you want to run it in background with transaction code if you have this options?
    Regards,
    Sunil kairam.

  • Creation Of Custom Transaction For RF enabled devices "mobile data entry"

    Hello Everyone,
    i need some information, or some material or some example's for creating custom transactions that will invoke the standard good issue transaction of sap from the handled device using the RF , so can anybody give some reference which will help me in creating custom transaction for a RF enabled handled device, which will invoke the standard sap goods issue transaction( mb1a) ,, there are some LM-transaction which do goods issue from the RF enabled handled device, but in my case i want to do goods issue using reservation as my input, so can anybody guide me or send some reference material matching to my problem, i would really appreciate it..
    thanks in advance...
    sapient2006

    Hi Hussaini,
    Here are the steps.
    1> Customization needs to be completed in SPRO. Logistics Execution -> Mobile Data entry section. Also compare entries with LM01 for understanding.
    2> In the 'Define menu management', you can create dynamic menus. For Menu or transaction type, if you enter "1", a menu appears; if you enter "2", a transaction appears. Custom transactions can be created and assigned here.
    Once that is done, when you execute LM01 you will see your custom transactions come up. Make sure that these are created keeping in mind the RF device screen size and limitations.
    Regards,
    Anand.

  • How to create print document for payment to customer through cash journal

    Dear Sirs,
    I have a problem with print document from cash journal. I enter a payment to customer (when I turn the money to customer) and the system makes right posting, but when I try to print this point, system printing document for incom from customer. I'm using business transaction for customer posting in cash journal. I would like to know how I have to manage this posting - payment to customer, or incoming from vendor (returnes advances from emploee)?

    Hi,
    please check whether the two solutions below work:
    1. create a contract with milestone billing plan where there are only down payment billings, so that on the basis of the contract you can generate down payment requests and then relevant down payments, release the contract to a sales order which can then be delivered and billed, manually clear the billing document with the down payments
    2. from FI module, create down payment requests via t-code F-37 directly, and then down payment posting, generate sales order directly, and then deliver and bill, manually clear the billing document with the down payments

  • Screen Enhancement in ME53N transaction

    Hi,
      I have developed a Report in which Purchase Requisition is the only field in the Selection Screen.
      When it is executed, it calls a smartform and displays the Purchase Requisition Details.
      The requirement is I have to add a Pushbutton in ME53N and ME52N transactions in which when
      the push button is clicked it has to call this report and display the Output.
    The functionality is like a "Print Preview" Button in the Standard Transactions.
    Regards,
    Sree

    Hi,
    use the exit MEREQ001 for screen ...create the push button in screen painter add the code on click of button to call the driver program...using submit statement....in which  write the code for caling the smartform..
    Thanks,
    Shailaja Ainala.

  • Transaction Launcher to call custom transaction

    Hi ,
    I have a requirement where i need to call a custom transaction using transaction launcher. I am able to successfully launch the transaction. But i need to pass a value to the transaction.
    For eg. If i am calling a custom report transaction which has a selection screen field 'FORMNAME' as a parameter i need to pass the name of the form to the transaction. I am not able to pass that value. Can any one help me onthis.
    I have seen all the posts , but could not get any help on how to set the value for custom transaction. I can see how it is done for standard transaction.
    Regards
    Ansari

    Hi Any help on this....I am still awaiting the response.
    Requirement: My requirement is to launch the SE38 transaction on WEBUI using transaction luncher tool and set the parameter on the selection screen.
    Issue: The issue is that I am able to lunch the transaction but unable to set the parameter
    Steps Performed:
    I want to list down all the steps I performed to launch an SE38 transaction using transaction launcher on the WEBUI
    1) Defined logical system in tcode CRMS_IC_CROSS_SYS
    -The logical link looks like this
    http://<server>:<port>/sap/bc/gui/sap/its/webgui/!?transaction=IC_LTXE&okcode=ICEXECUTE ?sap-client=300
    2) Defined URL & paratemeter wherein the request method is "GET", opted for NON-BSP URL
    URL link here is
    http://<server>:<port>/sap/bc/gui/sap/its/webgui/!?transaction=SE38&okcode=ONLI
    -Note: My selection screen okcode os ONLI*
    -The logical system ref is provided here
    3) Defined the parameter by giving the screen name like for SE38 selection screen name is "RS38M-PROGRAMM"
    4) Configured the transaction launcher of type B - URL type and provided the reference of the URL ID, choose the relevant parameter from the drop down and have hardcoded the value, cheked the box "Save Data in Activity Clipboard
    5) Added this in the NAvlink/Bus Role etc
    6) Now in the handler class of the TL the code looks like this:
    IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW
    __gdc ?=
    cl_crm_ui_data_context_srv=>get_instance( gv_view_controller ).
    __value
    =
    'ZC_TEST'.
    add_parameter(
       iv_name =
    'RS38M-PROGRAMM'
    iv_value = __value ).
    However, after performing the above steps I am unable to set the parameter. Please suggest where am I missing out on. An early response would really be appreciated.

  • Bill Presentment Architecture, how to Overide Default Rule and ensure the AR Invoice/Transaction Chooses "Customer Transaction Data Source"

    Hi Intelligentsia,
      we are on 12.2.4 on linux, i have setup external template with supplementary Data source as "Customer Transaction Data Source", when i test it fails, i am not able to debug it , however when i run the BPA Transaction Print Program (Multiple Languages) it always gives me the default layout.
    Query is
    How do i ensure the Default rule Does not apply to my Invoice and i am able to override it
    is there a method to explicitly Ensure the Supplementary Data Source as "Customer Transaction Data Source", when i am creating the AR Invoice/ Transaction?  Am i missing some setup in AR Invoice Transaction Flexfield where i need to setup this "Customer Transaction Data Source" as the DFF Context ?
    please let me know if you need any more information.
    Abdulrahman

    Hello,
    Thanks for the answer. When you say rule data is that Rule creation date or the "Bill Creation From Date" that we setup while creating the rule? I have created a new invoice after the rule created, but it did not pick the new custom template.
    I have another issue. It would be greate if you could help. I have split my logo area into 2 vertically to display logo in one and legal entity and addres on the other one. In the Online Preview I can see the logo and Legal address. But in the print preview , i am not able to see them. It just shows a blank space. Any Idea?
    Thanks in advance

  • Custom Transaction in Mobile ( laptop)

    My requirement is to build a custom transaction in Mobile 5.0 ( Laptop solution) which needs to interact with SAP R/3 using RFC function calls.
    I am planning to use .Net connector to connect R/3. How do I pass the value back and forth to the function module from screen.
    In research I found that I can only use .Net connector in BO layer.
    I used tile and mobile is asking me to bind to Bdoc but I don't have one?
    highly appreciate your response.

    Hi,
    of course you can do this.
    Firstly you need to define/create a new Business Object (Bdoc NOT supported) with attributes which you want to have.
    In your interface you take the recordset which you got from the external interface, create & fill a new Business Collection based on this BO definition mentioned above.
    Finally you only need to assign this BCol to the anchor BCol of the current tile.
    Regards,
    Wolfhard

  • Screen exit - LM46 RF transaction

    Hi,
    This is related to the screen exit of RF transaction LM46.
    We have created a screen exit for logical screen 0212 of SAPLLMOB for the RF transaction LM46 and added this screen in the screen management config.
    The custom sub screen 1212 for the user exit was created in SAPLXLRF as a copy of screen 2212 of SAPLLMOB.
    The issue we are facing is: the sub screen SAPLXLRF 1212 gets called but no data is being passed from SAPLLMOB screen to the SAPLXLRF sub screen as expected, so the screen appears without any values.
    Thanks and Regards,
    Simmi

    Hi
    You can find Exits and BADI from SPRO. Just identify the area where you want to enhance and go to that area by SPRO , then you can see system enhancement that are available. This is the good way to find enhancement because you can find the documentation related to enhancement.
    Like  SPRO > Material Management > Purchasing > Develop enhancement for purchasing (Exits)
    or see Business add ins for purchasing.  Read the documentation.
    Else you can search exits and badi by the package name like find the package of a transaction where you want to put enhancement. SE93 > Transaction name > Display > Package.
    then go to SE80 and open the package then see function group start with X. this are exits  that are available. you can find enhancement also.
    Else to find BADI related to a transaction just put break point to class method cl_exithandler->get_instance in SE24.
    and run the transaction , then you can find the BADI as exit name in this function call.
    These are the way you can find enhancement  , but the way which is describe 1st is the best way.
    hope it will solve ur problem.
    Thanks

  • Adding a screen field in FB60 transaction

    Hi all,
    I just want to add a screen field in FB60 transaction. In that transaction there is a table control. I want to add a coloumn there. Can anyone help me how to do that? I am working in ECC 5.0
    Thanks in advance
    Pranav

    Hi Pranav,
    If you want to add a new column under the table control in FB60, there is a way to do it through config.
    This is how it can be done:-
    1) Go to T-Code SPRO
    2) Financial Accounting New>Financial Global Settings New>Ledgers>Fields>Customer Fields>Edit Coding Block
    3) Define your new field under "Customer defined account assignments" . Make sure the name starts with either 'ZZ' or "YY". This creates a standard structure with your custom field and also appends this new custom field in many FI related tables including BSEG so make sure to check the impact with your functional consultant.
    4) Once it is defined, you might need to change the characteristics of your field under
    Financial Accounting New>Financial Global Settings New>Document>Define Posting Keys
    (This changes your fields status from suppresed to either Optional or Required depending on your requirement)
    Hope this link also helps
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/65/ec4bd7fb0f44f6814fa790dde9a172/frameset.htm
    Reward points if helpful
    Cheers
    Sanjiv

Maybe you are looking for

  • Excise Invoice - Fields not visible

    Hi All We are having problem in created excise invoice for export sales. When i do the J1iin for the same and click on utilization, all the fields in Excise details tab(Excise invoice type - EXPORT  Bond / No Bond / Deemed / LoU) are greyed, not able

  • Problem with call waiting!!!!!!!!!!

    when i call someone who is engaged in call i can't recognize it as it's not like all phones that shows CALL WAITING to know that the other party has a call. What should i do to Know the other one online or not  or what app shuld i use??

  • Record external video to the iPad via cable or device

    Hi, is there any hardware and software combination which will allow me to record video from an external source, such as a DVR onto the iPad ? Thank you

  • Toshiba Mini Netbook Not Booting

    Hi everyone, I'm sorry if this is under the wrong category as this is my first post, but anyways I am having problems starting my Toshiba Mini NB 205 netbook. It was fine until maybe the end of May. What happens is when I turn it on, nothing happens,

  • An OpenGL error occured while attempting to load the frame (fragment shader at -1:)

    I get this error when I try to load Magic Bullet Looks 1.4.1 from within AE CS5. I'm running Windows 7 x64 with an Nvidia QuadroFX 5800. - Driver version 197.03. Anyone know what causes this? Thanks