How to call a sub screen from abap report

Hellow friends,
how to call sub screen 1001 prog name SAPLMGD1
and main program SAPLMGMM screen 4000 of tcode MM02.
i need to call the sub screen from abap report

Hi Rajesh,
You can use FM MATERIAL_MAINTAIN_DIALOGUE to go to subcreen MRP1 in MM02.
Please check this sample code from other thread and enter 'MRP 1' for p_dytxt.
REPORT zsritest.
TABLES mara.
DATA: lv_bilds LIKE t133a-bilds,
ls_t130m LIKE t130m,
ls_rmmg1 LIKE rmmg1,
lwa_view TYPE mbildtab,
lwa_auswg TYPE mgauswg,
lt_views TYPE STANDARD TABLE OF mbildtab INITIAL SIZE 0,
lt_auswg TYPE STANDARD TABLE OF mgauswg INITIAL SIZE 0.
PARAMETERS: p_matnr LIKE mara-matnr,
p_werks LIKE marc-werks,
p_dytxt LIKE mbildtab-dytxt.
SELECT SINGLE * FROM mara WHERE matnr EQ p_matnr.
CHECK sy-subrc EQ 0.
CALL FUNCTION 'T130M_SINGLE_READ'
EXPORTING
tcode = 'MM02'
kzrfb = 'X'
IMPORTING
wt130m = ls_t130m
EXCEPTIONS
not_found = 1
wrong_call = 2
OTHERS = 3.
CALL FUNCTION 'BILDSEQUENZ_IDENTIFY'
EXPORTING
branche = mara-mbrsh
materialart = mara-mtart
tcode_ref = ls_t130m-trref
* KZRFB = ' '
IMPORTING
bildsequenz = lv_bilds
* KZ_BILDS_CHANGED =
EXCEPTIONS
wrong_call = 1
not_found = 2
OTHERS = 3.
CALL FUNCTION 'SELECTION_VIEWS_FIND'
EXPORTING
bildsequenz = lv_bilds
pflegestatus = mara-pstat
TABLES
bildtab = lt_views[]
EXCEPTIONS
call_wrong = 1
empty_selection = 2
OTHERS = 3.
ls_rmmg1-matnr = mara-matnr.
ls_rmmg1-werks = p_werks.
READ TABLE lt_views INTO lwa_view WITH KEY dytxt = p_dytxt.
CHECK sy-subrc EQ 0.
lwa_auswg-auswg = lwa_view-auswg.
APPEND lwa_auswg TO lt_auswg.
CALL FUNCTION 'MATERIAL_MAINTAIN_DIALOGUE'
EXPORTING
irmmg1 = ls_rmmg1
* IRMMG1_REF = ' '
KZ_EIN_DARK = 'X'
t_tcode = 'MM02'
* FLG_MATNR_RES = ' '
p_pstat = mara-pstat
* FLG_STAT_ALL = ' '
* CALL_MODE2 = ' '
* IMPORTING
* MATERIAL_NO =
* UPDATE_OK =
TABLES
iauswg = lt_auswg[]
EXCEPTIONS
no_authority = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Ferry Lianto

Similar Messages

  • How to call dynamic selection screen from another report

    hi,
    i have transaction ZFAGLL03.
    it has got standard selection screen.. and dynamic selection screen...
    i am calling this transaction from another report, now how do i display this dynamic selection screen.....

    Try following code and see if it helps:
    TYPE-POOLS : rsds.
    TABLES:tgsb.
    DATA: trange TYPE rsds_trange,
           trange_line
             LIKE LINE OF trange,
           trange_frange_t_line
             LIKE LINE OF trange_line-frange_t,
           trange_frange_t_selopt_t_line
             LIKE LINE OF trange_frange_t_line-selopt_t,
              trange_line1
             LIKE LINE OF trange,
           trange_frange_t_line1
             LIKE LINE OF trange_line-frange_t,
           trange_frange_t_selopt_t_line1
             LIKE LINE OF trange_frange_t_line-selopt_t,
           texpr TYPE rsds_texpr.
    DATA: seltab TYPE TABLE OF rsparams WITH HEADER LINE,seltex TYPE rsds_texpr.
    SELECT-OPTIONS:so_gsber FOR tgsb-gsber.
    LOOP AT so_gsber.
       trange_line-tablename = 'FAGLFLEXA_FS'.
       trange_frange_t_line-fieldname = 'RBUSA'.
       MOVE-CORRESPONDING so_gsber TO trange_frange_t_selopt_t_line.
       APPEND trange_frange_t_selopt_t_line
       TO trange_frange_t_line-selopt_t.
    ENDLOOP.
    APPEND trange_frange_t_line TO trange_line-frange_t.
    APPEND trange_line TO trange.
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
       EXPORTING
         field_ranges = trange
       IMPORTING
         expressions  = texpr.
    submit FAGL_ACCOUNT_ITEMS_GL with FREE SELECTIONS texpr   AND RETURN .

  • IP - Is it possible to call exit planning function from ABAP Report..

    Hi All,
    Greetings.
    Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module.
    If somebody here has been doing it before, I'm keen to ask to kindly share it. Particularly how to call and transfer data to that exit function.
    Or if somebody has done in BPS, appreciate if it can be shared too .
    Thanks a lot and have a good day,
    Best regards,
    Daniel N.

    Hi.
    You can achive this as suggested by Mattias in your previous post.
    Lets say you have next data structure:
    CostCenter | Amount | PercentForDistibution |
    Create input ready query in this format. Restrict cost center by variable type range.
    Create WAD with analysis item.
    When you run web page you enter range of cost centers (lets say you will enter 101004 to 101010).
    I assume you have data only for 101004 in your cube (lets say 1000).
    You will see only one record in your webpage.
    CostCenter | Amount | PercentForDistibution |
    101004       | 1000     | NOTHING
    When you create WAD in analysis item properties set "NUMBER_OF_NEW_LINES" to lets say 1 (so in WAD you will see always one blank line for entering new data).
    Just add 6 new records:
    CostCenter | Amount   | PercentForDistibution |
    101005       | NOTHING| 10
    101006       | NOTHING| 30
    101007       | NOTHING| 20
    101008       | NOTHING| 25
    101009       | NOTHING| 5
    101010       | NOTHING| 10
    Then run planning FOX function like this:
    FOREACH Z_COST_CENTER.
    IF {Amount, Z_COST_CENTER} <> 0
    Z_AMNT_TO_DISTRIBUTE = {Amount, Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    FOREACH Z_COST_CENTER.
    IF {PercentForDistibution Z_COST_CENTER} <> 0.
    {Amount, Z_COST_CENTER} = Z_AMNT_TO_DISTRIBUTE * {PercentForDistibution Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    It is not perfect FOX, but as an idead, it should work.
    Regards.

  • How can I print PDF attachments from ABAP report in transaction ME23N?

    Hi,
    Users attach PDF files using "services for objects" in transaction ME23N.
    How can I print the PDF attachments from ABAP report ?
    Thanks in advance,,

    Hi,
      check this link,this might help you to solve your problem
    /people/thomas.jung3/blog/2005/04/28/setting-up-an-adobe-writer-for-abap-output
    Regards
    Kiran Sure

  • Calling custom Infotype method from ABAP report

    Hi Experts,
    I am working on an application where i need to call a method of a custom defined infotype.
    I have done this -->
    1. Create a custom infotype 9111
    2. SAP creates a class of that infotype ZCL_HRPA_INFOTYPE_9111
    3. Inside this method there are few inherited method which provide me functionality of insert , update , delete
    i want to call methods IF_HRPA_INFTY_BL~MODIFY,
    IF_HRPA_INFTY_BL~INSERT
    However when i call these method from abap report this method does not work.
    where as when i try to insert an entry using PA30 transaction it works.
    Does anyone know why does this happen and what is the solution?
    Regards,
    Ashish Shah

    Hi,
    This is the code we are using. Just calling the read and modify methods of the check class. Very simple actually .. we just want once update/insert to work but it does not.
    <CODE>
    REPORT  ZTESTRAD_WD.
    FIELD-SYMBOLS <p9106> TYPE p9106.
    DATA : infty_container_tab TYPE hrpad_infty_container_tab ,
           message_list        TYPE REF TO cl_hrpa_message_list,
         w_ok type boole_d  ,
         ref_class TYPE REF TO ZCL_HRPA_INFOTYPE_9106,
         container        TYPE REF TO if_hrpa_infty_container,
         it9106_container TYPE REF TO cl_hrpa_infotype_container,
         p9106_ref        TYPE REF TO data,
        busilog type ref to if_hrpa_masterdata_bl.
    CREATE OBJECT  message_list.
    TRY.
            CREATE OBJECT ref_class
              EXPORTING
                tclas = 'A'
                infty = '9106'.
          CATCH cx_hrpa_violated_assertion .
            write :/ 'Error during initialization'.
      ENDTRY.
    call method cl_hrpa_masterdata_bl=>get_instance
       importing
         masterdata_bl = busilog.
    TRY.
    CALL METHOD ref_class->IF_HRPA_INFTY_BL~read
      EXPORTING
        tclas           = 'A'
        pernr           = 'XXXXXXXX'
        infty           = '9106'
        begda           = sy-datum
        endda           = sy-datum
        no_auth_check   = abap_true
        message_handler = message_list
      IMPORTING
        container_tab   = infty_container_tab
        is_ok           = w_ok.
    CATCH cx_hrpa_violated_assertion .
       WRITE :/ 'Infotype could not be read'.
    ENDTRY.
    *" Fill the local structure with container data:
      loop at infty_container_tab into container.
        it9106_container ?= container.
        TRY.
        CALL METHOD it9106_container->primary_record_ref
          IMPORTING
            pnnnn_ref =  p9106_ref.
         CATCH cx_hrpa_violated_assertion .
        ENDTRY.
        ASSIGN p9106_ref->* to <p9106>.
        write :/ <p9106> .
      endloop.
    *" Just change some field values of the record
      <p9106>-C1name2 = 'Test name'.
      <p9106>-C2name2 = 'Test name 2 3 4'.
    data : return TYPE BAPIRETURN1,
           return1 TYPE BAPIRETURN1.
    *CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
       number        = <p9106>-pernr
    IMPORTING
      RETURN        = return1
    *PERFORM do_nothing(sapfp50p).
    The container itself is modified
      container ?= it9106_container->modify_primary_record( <p9106> ).
    CREATE OBJECT message_list.
    the invocation - errors are always fatal !!!
      DATA : lx_exception  TYPE REF TO cx_root,
             update_mode type HRPAD_UPDATE_MODE,
             massn type massn,
             massg type massg.
      TRY.
          CALL METHOD ref_class->IF_HRPA_INFTY_BL~MODIFY(
            EXPORTING
               old_container =                   it9106_container
               massn                          = massn
               massg                         = massg
               update_mode =                 update_mode
               no_auth_check =                   'X'
               message_handler =                 message_list
            IMPORTING
               is_ok =                           w_ok
            CHANGING
               container =                       container
        CATCH cx_hrpa_violated_assertion INTO lx_exception.
          RAISE EXCEPTION TYPE cx_wd_no_handler
            EXPORTING previous = lx_exception.
      ENDTRY.
    </CODE>
    I have also tried by instantiating the cl_hrpa_masterdata_bl and then calling the methods on that object...... makes no difference.
    I used this link to proceed with the modifications:
    http://help.sap.com/saphelp_erp2005/helpdata/en/43/21d2254bba2bebe10000000a1553f7/frameset.htm
    The funny thing is that the WHOLE logic executes without any error messages or dumps or anything. I have now debugged almost every line of code that these methods call. PA30 works just fine. HR_INFOTYPE_OPERATION does not .. that's a whole differnt story.

  • Call module pool screen from ABAP Webdynpro

    Hi All
    I designed one screen in normal classical dynpro in SE80 for module pool program. I want to call that screen layout design in webdynpro view layout.
    So please help me how can i call that module pool screen from my ABAP webdynpro 

    Hi
    Thank you for your great replay. But Mr Ramakrishnappa and Mr Katrice as your reference i go through that but when i insert the program name and screen number program is end with a run time error saying
    dynamic type conflict when assigning reference.
    Please refer the below snap shot

  • How to call  web ui screen from bsp componants

    Hi Gurus,
                I am trying to call the web ui screen from bsp componants by using the function modules .but exception is coming. but from gui these functionmodules are opening the web ui screen.those function modules are BAPI_BUSPROCESSND_CHANGEDIALOG,CRM_1O_CALL_WEBUI here only we need to pass the GUID. but these are not working from bsp componants .i am not getting why these are not working if there is any solution Please give me suggestion.Its very needful.
    Regards,
    Bixamaiah.

    Hi Caíque Escaler,
             the requirement is workflow is triggered in web client.In the webscreen from the workflow task user selects the work item then one screen will come from there  if the user selects the reject option then immidiately  we need to open that order in web screen.that is the requirement.
    Regards,
    Bixamaiah.

  • How to call external http client from abap system

    Hi All,
    I have browsed through sdn and google but not found any helpful document ,
    Here my requirement is to call external http client from ecc ,
    Pl suggest..,
    Regards,
    Lokeswar .

    Hi Deepak,
    I have followed the below Reference links :
    Example Program: Executing an HTTP Request - Components of SAP Communication Technology - SAP Library
    http://scn.sap.com/thread/2035765
    but while executing  get http responce i'm facing 'HTTP_COMMUNICATION_FAILURE' error
        CALL METHOD L_HTTP_CLIENT->RECEIVE
          EXCEPTIONS
            HTTP_COMMUNICATION_FAILURE = 1
            HTTP_INVALID_STATE         = 2
            HTTP_PROCESSING_FAILED     = 3.
    Pl suggest ,

  • Client Proxy : How to Call Outbound Generated Proxy in ABAP report ?

    Dear SDNrs.
    I have already created a  Scenario for Client/ Outbound Proxy in XI .
    I have already Generated Client/ Outbound Proxy in ECC .
    Now Question is How to call this generated Proxy in report ?
    Please Guide ..... I dont have any idea ...
    1. before calling any proxy in report what information needs to collect from generated Proxy ?
    2. How to call this generated Proxy in report ?
    Regards
    Prabhat Sharma.

    Hi Prabhat
    You have to use your knowledge about ABAP OO for this.
    It's simple. You created your Proxy Object throught SPROXY transaction, right? Now, you have to instance your class (information avaliable in  SPROXY-> Proxy Objetc -> Class Name) and to use the method displayed there.
    Follow an example:
    DATA: wa_backfeed      TYPE zibrsapglbackfeed_sapgl, 
               wa_output            TYPE zibrsapglrequest,        
               lo_clientproxy       TYPE REF TO zibrco_sapgl_out,   
               lo_sys_exception TYPE REF TO cx_ai_system_fault.
      TRY.
          CREATE OBJECT lo_clientproxy.
          CALL METHOD lo_clientproxy->sapgl_out
            EXPORTING
              output = wa_output.
        CATCH cx_ai_system_fault INTO lo_sys_exception.
                   lo_sys_exception->if_message~get_text( ).
      ENDTRY.

  • How to trigger an xi communication from abap report?

    Hello,
    I would like to ask if there is a blog, howto or something about How to trigger the communication in an abap programm. The communication will be either rfc->ftp or rfc->jdbc. So how can I tell XI to call that rfc to start the communication (from r/3 as abap programm)?
    thank you.

    >
    RAJEEV GUPTA wrote:
    > Hi Daniel,
    >
    > you can tell rfc to send the rfc response to XI.............but for this you have two options:
    > 1. by se38 report you can execute rfc in r/3 and send its response to XI destination target system by executing the function module of rfc in your abap report
    > 2. you can send the rfc req msg from XI to r/3 and then you will automatically get the rfc response from r/3 in XI via this synch msg.
    >
    >
    > Regards,
    > Rajeev Gupta
    Hello,
    about nr1:
    When I set the DESTINATION parameter in a abap report, doesn't this mean the system where the rfc is available? Because when I do it like that my abap report would look for the rfc there and not in r/3 itself. Isn't that right?
    e.g.
    CALL FUNCTION 'RFC_on_r3'
               DESTINATION 'XI.rfc.dest'
    So you think that should work?

  • How to call a RFC function from ABAP to external C/C++ system

    Hi
    Can some one describe me what are the steps that needs to be done to call a RFC function in external C++ system and to handle errors.
    Any previous experience,please share

    Hi,
    i think this is the wrong Forum.
    Better use the SAP NetWeaver .NET Technologies Forum on this site.
    Henning

  • Calling a proxy from ABAP Report

    Hi All,
    Can any one gimme some idea about calling a XI proxy from ABAP Report.
    I need to gather data in my internal table and after that i need to trigger a proxy which is going to do a outbound processing.
    Thanks in advance.
    Tnx,
    Joe.

    Hi Meetjoe,
      We have to design the required interface in PI ,that is used to hold the report data when tigerred a proxy and generate the proxy based on the interface if the Proxy is based on the Outbound side its called client proxy  or if the proxy is genereated on Inbound interface we call it server proxy.
    need to gather data in my internal table and after that i need to trigger a proxy which is going to do a outbound processing.
      In your case its gonna be the client proxy refer the follwing links for your better understanding
    For concepts on Proxies:
    http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/content.htm
    To enable Proxy connections:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d69314-1be0-2b10-11ab-8045021f0c3a
    Smaple scenarios on Proxy:
    Proxysettings /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    ABAP Server Proxy /people/siva.maranani/blog/2005/04/03/abap-server-proxies 
    ABAP Client Proxy /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy 
    Thanks,
    Ram.

  • How can we take the cursor to a different sub-screen from the BADI?

    Hi,
    We have to do some validation on Header, Operation and Relationship of any work order (IW31, IW32). We have checked that validations can be done at BADI WORKORDER_UPDATE in the method u2018AT_SAVEu2019.  But user wants us to take the Cursor back to the field and screen due to which the error is coming. How can we take the cursor to a different sub-screen from the BADI?
    Thanks in Advance,
    Pranav

    You 'ran out of room' because you tried to put your entire question into what is the 'Topic line' of the post.
    This is a fairly common error, as a scan of the topic list will show, and likely due to a design flaw in the layout of the composition page.
    Most posters who make this error do so on their first post, and are able to avoid a similar misstep on their second and subsequent questions.
    Regards,
    Barry

  • How to call a BW Query from an ABAP program?

    How to call a BW Query from an ABAP program?

    hi
    check this link
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-ii
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    hope this helps
    cheers

  • How to launch an ITS screen from an ABAP WebDynpro Button Action

    Hello All,
    I have a requirement to launch an ITS Screen from ABAP WebDynpro. There will be abutton on the WebDynpro screen and when the user will click on that button, the ITS Screen will be launched.
    Can anyone please provide us some sample applications or sample code to achieve the above functionality.
    Points will be rewarded.
    Thanks
    Shyam

    Hi Shyam,
    You can achieve by using Launchpad Customizing and the Launchpad Navigation API's. Just make and entry on transaction LPD_CUST, create a launchpad role, add you target application there.
    At run time under the UI button you can call the API provided by CL_APB_LAUNCHPAD_API -->LAUNCH_APPLICATION to open the application. You can find many material on Internet for the same, with examples, even try some where-use in your system.
    I found one more helpful link.
    http://sapignite.com/call-sap-tcode-using-webdynpro-for-abap/
    Regards
    Vineet

Maybe you are looking for

  • How can you generate Multiple random numbers from 1 to 49?

    I am very new at programming with the iPhone SDK and I need some help with a project I am working on. What I want to do is set up a window with 6 labels and 1 button. When the user clicks the button, the program will populate 6 randomized numbers eac

  • Error while using Microsoft.WindowsAzure.Storage dll in Plugin

    Hi, I want to save some CRM content on Azure blob storage. For this i am using a plugin to create data on Azure blob storage. But my plugin is throwing error. Can anyone suggest me some idea how to work with this. Below is the error. Unhandled Except

  • Third party automatic creation of Purchase order

    Dear experts, In third party scenario i used ALES item category for automatic creation of PR & PO.. But i am unable to get..it...  Isit any other settings required for this process. Please advise Thanks & Regards, VSN

  • List in between date range

    i'm having data stored as follows DEPOT_CODE EMP_ID ACTIVE_FROM ACTIVE_TO 400 68955 01-JAN-08 31-JAN-09 400 68962 01-JAN-08 20-JAN-08 400 68999 01-JAN-08 400 689600 01-JAN-08 400 684530 01-JAN-08 I wanted to list all the records active in between giv

  • Error connecting to SQL  server 2005 from Dreamweaver 8

    Hi I have a database in SQL server 2005.I just started using dreamweaver's server behaviours.When I use the "log in" behaviour I get the following error. Microsoft VBScript compilation (0x800A0401) Expected end of statement /MyBlog/Connections/connBl