How to capture the ok-code from xd01 to my program

Hi All,
I have a big problem. I have created a t-code zxd01 and my program zsapmf02d. In my t-code, in my first screen it looks like xd01 first screen and extra some custom fields.
In my first screen it has buttons, if they click on "create" button on 1st screen i am calling "Call transaction xd01 and skip first screen". Its calling xd01 2nd screen and remaining things xd01 functionality. but when user presses any ok-code, its coming back to my program. I don't want do this thing for some ok-codes like "enter". How to do this? I am thinking if i capture the ok-code from xd01 and when its coming back to my progarm, i can tell it behave differently.
How to capture it? Is there any userexits to capture the ok-code, from there using export and import?
Its a high priority issue. Please help me.
Thanks

Sankar,
Believe creating multiple threads will not help in resolving the issue faster. Please close the other two threads. It will help the members in answering your question properly and it will become easy for you to track the solution also.
Please understand and read the rules of engagement )
Thanks,

Similar Messages

  • How to capture the selected values from module pool dialog list box !

    Hi experts,
    Can anyone help me out in capturing the values from the list box.
    i am able to set the values in the list box.But i am not able to capture the selected value from the list box. Always the list box name is getting as "space"
    I also tried in using the FM "VRM_GET_VALUES" but it is retireving all the values. Is there is any flag for filttering out the selected value.
    Your inputs are appreciated.
    Thanks,
    Vijay.

    Along with the PBO and PAI event, add a POV event in the flow logic of the screen
    DEMO_DROPDOWN_LIST_BOX -is a good demo example.
    PROCESS ON VALUE-REQUEST.
    FIELD structure_name-field_name MODULE create_dropdown_box.
    In the report :
    MODULE create_dropdown_box INPUT.
      SELECT carrid carrname
                    FROM scarr
                    INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'CARRID'
                value_org       = 'S'
           TABLES
                value_tab       = itab_carrid
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.
    ENDMODULE.
    In the layout, assign a Function Code , for eg : 'SELECTED' to the listbox and lets say name of the field is SDYN_CONN-CARRID. So in the PAI module,
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'SELECTED'.
          MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
      ENDCASE.
    ENDMODULE.
    sdyb_conn-carrid will contain your selected field

  • HOW TO CAPTURE THE COMPANY CODE IN MIR7

    Hi ALL,
    MIRO data transfer i am facing some problem
    initially i am capturing the Company code in MIRO
    after that i am filling up all those values.
    for my requirement
    1.i want to hold the company code screen initially at all time
    other wise
    2. i am getting error message as No batch input screen for 'SAPLMR1M" '1000' while i am execution of the second time of MIRO posting  how to eliminate the error message.
    Please advise.
    Thanks & Regards
    K.Gunasekar.

    Hi All
    I am doing BDC in FV60( Recording) is it possible to pass the value into hidden fields through (BDC)
    SCREEN FIELD NAME: Document Type.
    Document type is hidden through FV00 and also without changing configuration in IMG.
    Thanks & Regards
    K.Gunasekar.

  • How to capture the xMII user from xMII Login page

    Hi Friends,
    I want to capture the xmii login deatiles and how we can do.
    can any one please expalin.
    Thanks
    Srikanth

    Hi,
    You can capture the login name from default login cookies(session properties)
    for example
    loginname
    For others Please check the Personalization and user profile management topics in help.
    Regards,
    Kishore

  • How to capture the company code changes

    Hi Experts,
               I need to capture the delta changes of company code which update the T001 table.( i.e. if there is any modification on existing company code or new company code created ). I couldn't find Userexit for OX02 and ec01 Tcodes. please suggest me how to achieve this, looking forward to here from all.
    Usefull answers will be rewarded,
    thanks in advance,
    Tom

    Try SCU3 transaction, as the T001 table has the "Log Data Changes" ON.
    Regards,
    Naimesh Patel

  • How to delete the TXN codes from Tcode Field

    Dear All,
    Can any one help me in removing the tcode list from the transaction code field where we execute tcodes from?
    Also, in the login screen of SAP, it suggest the list of users who accessed SAP recently. I want to delete that as well.
    Your help would be appreciated.
    Thanks in advance.
    Regards,
    Faisal

    Hi Manu,
    Thanks alot for your reply. I did as you have directed. In the login screen, now i dont find those recently used user ids. However, in transaction code field still the recently used tcodes are available. How do i remove them from there?
    Regards,
    Faisal

  • How to read the HTML code from a webpage

    Hi, I want to be able to read the HTML code of a web page
    In order to extract some info from some pages.
    How can I do that?
    is it using cl_http_client ? I played with that class a bit, but wih no sucess to what I need...

    Hi RagnaRock,
    You can use the following form, hope it helps you.
    Regards,
    Ozcan.
    form get_data_from_url using iv_url type clike changing iv_data type string.
    DATA: HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT .
      clear  iv_data.
      CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
           EXPORTING
            URL                = IV_URL
    *          PROXY_HOST         = '10.1.1.1'
    *          PROXY_SERVICE      = '1234'
    *       SSL_ID             =
           IMPORTING
             CLIENT             = HTTP_CLIENT
           EXCEPTIONS
             ARGUMENT_NOT_FOUND = 1
             PLUGIN_NOT_ACTIVE  = 2
             INTERNAL_ERROR     = 3
             OTHERS             = 4.
      CHECK SY-SUBRC = 0.
      CALL METHOD HTTP_CLIENT->SEND
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2.
      CHECK SY-SUBRC = 0.
      CALL METHOD HTTP_CLIENT->RECEIVE
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2
          HTTP_PROCESSING_FAILED     = 3.
      CHECK SY-SUBRC = 0.
      iv_data = HTTP_CLIENT->RESPONSE->GET_CDATA( ).
    endform.                    "get_data_from_url
    Edited by: Ozcan Gurdal on Aug 11, 2010 4:07 PM

  • How to capture the error messages from incorrect session?

    Hi SDNs.,
    i am using BDC Session method to update transaction FB01. So my job runs daily. here i want to capture the error messages and i want to send it to mail.  Can i capture the unprocessed records???
    i think FM <b>SO_NEW_DOCUMENT_ATT_SEND_API1</b> used for sending mail? but how to capture mes or records?
    or Is there any other way to Do it???
    Thankning you.,
    Ram

    Hi Ramakrishna,
       Once you create the session, Process the session using
    the report RSBDCSUB using submit statement.
    It would list out the erroneous records.
    Hence, while submitting, just say submit RSBDCSUB in background and export output list to memory.,
    Then you can retrieve the list from memory using the FM LIST_FROM_MEMORY into the internal table and finally send the email by the fm you have already mentioned.
    Regards,
    Ravi

  • How to capture the Status code in Web application Transcation monitoring if we are using multiple Request

    Hi Team
    We would like to monitor 12 url,s which requires Authentication. Hence i have added the same in one Single Web application transcation template.
    i have added the below info to the get the Stats code displayed in Alert
    Status code is $Data/Context/RequestResults/RequestResult["1"]/BasePageData/StatusCode$
    when i recived a alert it gave the Status code of the 1st Request
    hence i changed the same as
    Status code is $Data/Context/RequestResults/RequestResult["12"]/BasePageData/StatusCode$
    But still i am facing the same issue .
    My first request shows me a status code of 200, and my 12th Request comes with 500 but in the alert i get 200 but it should be 500.
    Kindly help me in how i can get the Status code for the multiple  Request.
    Regards
    Sriram

    Hi Sriram,
    Please run the test of your 12th Request, view full result and check if Status Code is 200.
    Meanwhile, you can run the URL manually to check the result.
    Niki Han
    TechNet Community Support

  • How to read the html code from a specific page

    is there a way that I can get the source code of a specific url and display that into a textarea with java?

    Sure. One thing you could do would be to have a servlet that fetches html from a given url and stores the html in a jsp bean. You can then use the data in this bean to populate the text area.

  • How to capture the Actual approver from BADI :BBP_WFL_APPROV_BADI

    If the approval branch(index) has 5 approvers and  If any one of them is approving,
    the APPROVAL_HISTORY_TABLE has all the 5 approvers of that branch.
    User1 is one of the 5 users.When he is approving,the approval table has all the 5 approvers and no where the actual approver of that branch is  captured.
    Can  we capture the actual approver based on Sy-Uname?
    Or is there any other specific solution?please suggest.

    Hello Kittu,
    Here is below process for BBP_WFL_APPROV_BADI BAdI call by function modul:
    BBP_WFL_DIN_APPR_CONTAINER_SET > BBP_WFL_DIN_APPR_FINALLIST_GET > BBP_WFL_DIN_APPR_CONTAINER_GET > BAdI BBP_WFL_APPROV_BADI.
    Now, check what's happened for first function module local variable lv_actual_index and local table lt_cont_approver
    coming from BAdI parameters ACTUAL_APPROVAL_INDEX and APPROVAL_TABLE.
    Maybe your BAdI method is not correctly implemented.
    Regards.
    Laurent.

  • How to capture the user name who is running concurrent program

    Hi Everyone
    In oracle apps when i want to store the user name who is running a concurrent program in specific responsibility.
    For that I created a table as USER_INFO which has a column called USERNAME.
    T o capture the user name i created a before report trigger and wrote the following code which will store the username into USER_INFO
    function insert_trg return boolean is
    begin
      insert into USER_INFO(USERNAME) values
    (select fnd_profile.value('USERNAME') from dual);
    COMMIT;
      return (TRUE);
    end;In the above code i used fnd_profile.value('USERNAME') to store the username but after running the concurrent program when i am query the table it returns no rows .
    It means the fnd_profile.value('USERNAME') is not storing the value.
    Please tell me what to do?
    Regards
    Sabyasachi

    In order to fetch any FND_PROFILE or FND_GLOBAL values you need to initialize apps
    fnd_global.apps_initialize(user, resp_id,resp_application_id)
    begin
    fnd_global.apps_initialize(0,20420,1);
    dbms_output.PUT_LINE (FND_PROFILE.VALUE('ORG_ID'));
    dbms_output.PUT_LINE (FND_PROFILE.VALUE('USER_ID'));
    dbms_output.PUT_LINE (FND_PROFILE.VALUE('USERNAME'));
    end; Check the following MOS note
    How To Set the Applications Context (FND_GLOBAL.APPS_INITIALIZE) [ID 209185.1]
    Cheers,
    ND
    Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered.

  • How to use the google search from inside a java program

    Hi guys
    How can i use google search in my java program?
    What will be the type of the reply i get back from google?
    Thanks in advance
    [http://javamilestone.blogspot.com/|http://javamilestone.blogspot.com/]

    Hi,
    You have here some examples about how to make search on google from a Java application.
    The type of reply is JSON
    Here some documentation about it:
    [http://code.google.com/apis/ajaxsearch/documentation/#fonje|http://code.google.com/apis/ajaxsearch/documentation/#fonje]
    And here some snippets:
    [http://code.google.com/apis/ajaxsearch/documentation/#fonje_snippets|http://code.google.com/apis/ajaxsearch/documentation/#fonje_snippets]
    Regards,
    David.

  • How to hide the source code from the .class file

    Hi,
    By some jad tool we can recompile the .class files and get the java file corresponding to it. How to protect it?
    Anyone please help me..
    Thanks & Regards,
    N.Ravasankar

    An obfuscator can for example rename classes, variables to meaningless names, like one-letter names. And it can make some bytecode that is hard to decompile or just makes the code less readable when decompiled. Some obfuscators might even be able to do something to the code that makes decompilers not work or incorrect decompile code.

  • How to retrieve the webdynpro code from a business package

    Hi Experts,
    We have deployed the ESS/MSS Business Package . The issue is that we have to make some changes in the applications which have been deployed alongwith the business package.Since the business package was provided by SAP , we do not have the Webdynpro DC for the same.
    Can Experts please tell me the easiest & legal way to retrieve the webdynpro piece of code so we can make the required changes?
    Thanks in advance,
    Virag Shinde
    virag.shinde(@)lntinfotech.com

    Hi,
      You will have to use NWDI and import the webdynpro components into developer studio. Check these links.
    Re: ESS/XSS Web Dynpro SCA import in CMS to view/modify Web Dynpro Source Code
    Common pitfalls using the NWDI
    Best Practices for Running the NWDI
    Regards,
    Harini S

Maybe you are looking for

  • Post installation Issue

    Hi: I have installed Application Express 3.2.1 on Oracle 10g running Oracle Application Server. Installation completes normally. I am using mod_plsql and have configured the dads.conf file correctly and have copied the images direcory. When I try to

  • Errors loading .m4v into iBook author?

    Anyone getting errors loading .m4v into iBook author? I have been supplied .m4v files to insert into my document and an error pops up ...

  • Please provide some notes in enhancements

    hi abapers i am new to enhancements please provide some notes and faq's [email protected]

  • Keyboard does not type letter on key; how to return to normal?

    keyboard does not type letter on key; how to return to normal? It looks like cyrillic or some slavic language. There is no correspondence between the letter on the key and what appears.

  • Formatting my external drive.

    I'm going to be reformatting my LaCie 250GB Firewire drive. Is there anything specific I should do? Also, would having partitions create less or more possible directory corruption problems in the future? Any drive formatting hints or suggestions woul