How to get result of "CALL TRANSACTION"

Hi everyone, I got in a trouble when using this piece of code:
START-OF-SELECTION.
  SET PARAMETER ID 'LIF' FIELD p_lifnr.
  SET PARAMETER ID 'BUK' FIELD p_bukrs.
  SET PARAMETER ID 'KGK' FIELD p_ktokd.
  CALL TRANSACTION 'XK01' AND SKIP FIRST SCREEN.
  COMMIT WORK.
This code will commit value of field p_lifnr, p_bukrs, p_ktokd from current screen(scr 100 for example) to another screen which have transaction code 'XK01'. If I commit correct information for those field, the program run well, but my problem is that: if I enter wrong information for field, XK01 will return the error message, but how can I catch that message and display it on my screen (scr100), instead of display the error message on XK01. If I also put the code for checking data in my screen, than the program will check it twice (on scr100 and on XK01), I think that's not a good Idea.
Any one can help me on this problem!!
Thankyou & Regards,
Long

Hi,
         Use the Call Transaction as given below:
CALL TRANSACTION 'XK01' USING i_bdcdata
            MODE   lc_n
            UPDATE lc_s
            MESSAGES INTO i_messtab.
Where:
i_messtab  is a table of type  bdcmsgcoll.
Try this if it can help.

Similar Messages

  • How  to get GUID for a transaction

    How to get GUID of a transaction in solution manager support desk.
    pls help reg this.

    Hi Kalpanashri,
    I would suggest you to go for recording of the transaction. Then you can get to know the tables of the related fields which you have entered value during recording.
    OR
    For checking individual fields, you can go for the <b>WHERE-USED LIST</b>.
    For Ex:
    Please go to SE11 and enter data type with MATNR.
    Then click on where-used list button and check only table type (the first option) and click on continue.
    The system will show list of tables that store value of MATNR field. You can do double click on the field name and system will take you to detail screen of the table fields. Then from here ... you browse the data as well.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • How to get full screen caller pic in ios 7.1

    How to get full screen caller pic in ios 7.1.Please help me

    Haha .. I have seen one million post on this issue since 7.1 was released. Everybody hates it and it is perhaps Apple's stupidest design decision. I, personally, happen to like it ... or not mind it as much either way, I should say.
    But that's not what you asked ... Apple thought it was best for some odd reason to change the full screen pics to an itty bitty circle. As a previous poster said, it cannot be changed. But be sure to go to Apple's feedback website and let them know you are unhappy about it. I sense an iOS 7.1.1 coming out REAL soon!

  • How to get the initial (first) transaction

    Hi, everybody.
    I need to get the initial (or first) transaction, from which the current was called. Does anybody know how?
    Example: Tr. FEBAN after some operations calls FB05, then in OPENFI-logic SY-TCODE = 'FB05'. How can I get 'FEBAN'.
    Maybe there are some system functions?
    Thanks.

    Hi Aidar,
    Unfortunately, there are some insurmountable barriers in SAP. When a transaction calls another one using CALL TRANSACTION, a new internal mode is created, that cannot see the first one, except when programs communicate explicitly between the 2 using the SAP memory (get parameter id, set parameter id), ABAP memory (export to memory id/import from...), shared memory.
    Only Chen's answer makes sense here. You may also debug just before the CALL TRANSACTION 'FB05' or LEAVE TO TRANSACTION 'FB05' (by debug you can simply add a soft "breakpoint at statement" CALL TRANSACTION or LEAVE TO TRANSACTION to make the system halt automatically when the statement is reached) where you'll maybe find some data transferred to the memories I mentioned above, which you could then read from your code to know to say if it comes from FEBAN.
    Sandra

  • How to get result of Select from stored function.

    I need to get result of select from a stored function.
    In the end of my stored function I makes final select (four columns).
    How it can be retrived from function?

    Hi,
    A function can only return one value, but it sounds like you want to return 4 values.
    The one value that you return can be a record, with many columns, such as a ROWTYPE, or a TYPE that you define.
    You can return an XMLTYPE that has whatever elements you want.
    You can write a procedure that has several OUT parameters. (You can have OUT parameters in a function, but a lot of people find that confusing.)
    In very special circumstance, you might consider returning a string that is a delimited list of values, such as '7639,SMITH,,17-DEC-1980'.
    Someoneelse has a good point.
    We could give a better answer if you ask a specific question, like:
    "I have this table ...
    I want a function such that, if I call it with these parameters ... I get ...
    but if I call it like this ... then I get ..."

  • How to set the BDC Call transaction Program in Background

    Hi All,
            I have a requirement. If i execute a BDC Call Transaction Program in Background it is showing 0 seconds means it is not executing. Normally it is working properly. If execute in background it is not executing. But my client wnats to execute in background. How can i overcome this could you please suggest me?
    Thanks in Advance

    hi
    To schedule the processing of session in backgroud you can use report RSBDCSUB.
    You can do in two ways -
    Ist Method
    Define a batch job in SM36 with two steps -
    First Step - Your Custom Program ( with a variant )
    Second Step - RSBDCSUB ( With a variant having
    the session name ).
    2nd Method
    In your program after BDC_CLOSE_GROUP add a line.
    SUBMIT RSBDCSUB WITH MAPPE EQ <SESSION_NAME>.
    Scedule you program as a batch job in SM36 ( Single Step ). ( You can also test the program by running in online mode . After your programs executes , go and see in SM35. You will see that your session created in being processed or has been processed in background).
    In Both ways the session created by BDC_OPEN_GROUP will be processed in background
    You would have to create a job on the fly to do this. This example shows how to kick off a background job via an ABAP program.
    report zrich_0004 .
    data:   sdate type sy-datum,
            stime type sy-uzeit,
            l_valid,
            ls_params like pri_params,
            l_jobcount like tbtcjob-jobcount,
            l_jobname  like tbtcjob-jobname.
    start-of-selection.
    Get Print Parameters
      call function 'GET_PRINT_PARAMETERS'
           exporting
                no_dialog      = 'X'
           importing
                valid          = l_valid
                out_parameters = ls_params.
    Open Job
      l_jobname = 'ZRICH_0005'.
      call function 'JOB_OPEN'
           exporting
                jobname  = l_jobname
           importing
                jobcount = l_jobcount.
    Submit report to job
      submit zrich_0005   
           via job     l_jobname
               number  l_jobcount
           to sap-spool without spool dynpro
               spool parameters ls_params
                  and return.
    Schedule and close job.
      call function 'JOB_CLOSE'
           exporting
                jobcount  = l_jobcount
                jobname   = l_jobname
                strtimmed = 'X.
    regards
    Satish

  • How to get result

    hi
    i created a java source coded below
    CREATE OR REPLACE JAVA SOURCE
    NAMED "Welcome"
    as import java.lang.*;
    public class Welcome
    public static void main(String s[])
    System.out.println("Welcom to java");
    java created.
    but how to get the result "welcome to java"
    how call or execute Welcome class file.
    thanks any one help
    bye

    Try this:
    CREATE OR REPLACE JAVA SOURCE NAMED Welcome
    as
    import java.lang.*;
    class Welcome
      public static void main(String s[])
        System.out.println("Welcome to java");
    CREATE OR REPLACE PROCEDURE welcome
    AS LANGUAGE JAVA NAME 'Welcome.main(java.lang.String[])'; 
    set serveroutput on
    call dbms_java.set_output(2000);
    exec welcome;

  • How to get Result Count Content By Search Webpart (ContentBySearchWebPart)?

    I'm writing a webpart that extends the out of the box ContentBySearchWebPart.
    Does any one know how to get the search result count from this webpart?
    I did not find any property?

    Hi 
    Thanks but you are referring to the "Search Webpart". I am referring to the "Content Search" or often called "Content by Search" which is different. It's the one under Content Rollup.
    Although very similar they're not - Content Search WP doesn't have that property.
    What I am really after is to hide the whole webpart if there are no results coming back. I tried to figure it out and even write a jQuery that would search for the text "There are no results" message which comes from the webpart when result count=0
    and hide the parent webpart that way. There will be a short flash once the page loads rendering the webpart for a split second and then disappear by jQuery - which is not great UI experience.
    There is this property: "ShouldHideControlWhenEmpty" but it doesn't do anything when there are no results. The webpart is still visible. Webpart has a the Title and the Border around it so when there are no results the title and the border show
    up with no results. Like I said I want to hide the whole thing in that case.
    So I thought I could extend the OOTB ContentBySearchWebPart and get a hold of some kind property that would get me the result count. If the results count is 0 simply I would hide the webpart server side.
    Thoughts?

  • How to get result without single cotes in ''Cast(Multiset( '' Result.

    select cast(multiset(select column_name
    from user_tab_columns
    where table_name = 'DAILY_PRODN_MIS'
    and column_name like '%STOCK%'
    order by column_name) as tab_type) result from dual;
    RESULT
    TAB_TYPE('BAGS_STOCK', 'BLUE_DUST_STOCK', 'CEMENT_STOCK', 'CEMENT_STOCK_33', 'CEMENT_STOCK_43', 'CEMENT_STOCK_53', 'CK_ADJ', 'COAL_IND_D_STOCK', 'COAL_IND_D_STOCK_ADJ', 'COAL_IND_E_STOCK', 'COAL_IND_E_STOCK_ADJ', 'COAL_IND_F_STOCK','OCK_ADJ', 'MTD_COAL_IMP_D_STOCK_ADJ', 'MTD_COAL_IMP_E_STOCK_ADJ', 'MTD_COAL_IND_A_STOCK_ADJ', 'MTD_COAL_IND_B_STOCK_', 'YTD_COAL_IMP_B_STOCK_ADJ', 'YTD_COAL_IMP_C_STOCK_ADJ', 'YTD_COAL_IMP_D_STOCK_ADJ', 'YTD_COAL_IMP_E_STOCK_ADJ')
    How can i get result without single cotes for each column.

    Your query currently returns a collection type (tab_type) whereas it appears you want to return a delimited string.
    There are actually quite a few ways to achieve this - with your own function, with a user-defined aggregate functions (e.g. Tom Kyte's stragg), with the MODEL clause or with CONNECT BY, e.g.
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> SELECT table_name,
      2         SUBSTR (MAX (SYS_CONNECT_BY_PATH (
      3            column_name, ',')), 2) column_names
      4  FROM  (SELECT table_name, column_name,
      5                ROW_NUMBER () OVER (
      6                   PARTITION BY table_name
      7                   ORDER BY column_id) column_order
      8         FROM   user_tab_columns
      9         WHERE  table_name = 'BANK_ACCOUNT'
    10         AND    column_name LIKE '%U%') utc
    11  START WITH column_order = 1
    12  CONNECT BY column_order = PRIOR column_order + 1
    13  AND    table_name = PRIOR table_name
    14  GROUP BY   table_name;
    TABLE_NAME           COLUMN_NAMES
    BANK_ACCOUNT         ACCOUNT_NAME,ACCOUNT_NUMBER
    SQL>

  • How to get result of PING whether TRUE/FALSE and prompt message to user?

    Hi all!!!!
    In Forms 6i, I need to know how to get the result of a ping if the ping is sucessful or not. It should prompt the user whether the connectivity is there or not after the ping statement which is HOST('PING 191.10.10.40'). As of now, when the user select the desired LOV, the corresponding HOST statement is executed. But if the connectivity is not there, the user is left in blank with a hanging situation... So can we not prompt the user if the connection has been failed or not?
    Regards

    Hi,
    You can try this.
    Redirect the output of the ping test to a file. Read the file using TEXT_IO and see if the test is passed. For ex
    host('ping <your_ip> > c:\ping_test.log');Will redirect the ping output to ping_test.log file under c:\ drive.
    Open the file using TEXT_IO and check if you have the text "Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)". If you have, then the host is reachable. Otherwise its not. Depending on that, you can change the flow of your application.
    -Arun

  • How to use CTUPARAMS in CALL TRANSACTION

    Hi ,
    How to pass ctuparms in CALL TRANSACTIION.
    Please give me some example.
    Thanks in Advance,
    Kuma A.

    Hi,
    Check this example..
      DATA: ls_params TYPE ctu_params.
      DATA: t_bdcdata TYPE STANDARD TABLE OF bdcdata.
      ls_params-dismode  = 'N'.   " No display
      ls_params-updmode  = 'S'.   " Synchronous
      ls_params-defsize  = 'X'.   " Default window size.
      CALL TRANSACTION 'MM01' USING t_bdcdata OPTIONS FROM ls_params.
    Thanks
    Naren

  • How many reocrds update in call transaction method and session method

    The flat file having the 10 records but the flat file having the 5 th record is error so in session method how many records will  update and in call transaction how many records  will update.
    can you provide with detailed information  like in synchrnous mode and asynchronous mode
    Regards
    reddy

    hi,
    session method :up to 4 records will be updated as it is in synchronus mode.
    Call transaction method : except 5 th all 9 records will be updated as it is assyncronous method.
    Regards
    sandeep Reddy

  • How to get result of MDM validation expression with type warning?

    I need  to get result of MDM validation expression with type WARNING (in automatic execution),
    but - method validationResult.getFailedValidations(..) returns validation if it has type ERROR,
    so all Warnings treated only as success despite it returned false or true.
    My question - how can I get that 'false or true' expression resut for validation.
    thanks

    Hello Vladimir
    By my opinion, hook warning exception isn't make sense because after warning message data will be change(upload).
    Moreover  if you start validation from WF Warning exception doesn't work at all.
    If you want to do some data changes you should use and hook Error exception.
    Regards
    Kanstantsin Chernichenka

  • How to get rid of maintaining transaction IDX2

    Hy everybody,
    is there a way to get rid of maintaining transaction IDX2, when an IDoc structure changes?
    Thanks a lot,
    Thomas

    I have done some investigations and found the part in the idx2 where the structure is deleted...
          delete from idxsload where port    eq i_idxsload-port
                               and   idoctyp eq i_idxsload-idoctyp
                               and   cimtyp  eq i_idxsload-cimtyp.
          delete from idxidocsyn where port    eq i_idxsload-port
                                 and   idoctyp eq i_idxsload-idoctyp
                                 and   cimtyp  eq i_idxsload-cimtyp.
    Do you think it is crazy to write a program which uses this lines of code?
    Regards,
    Thomas

  • How to get result after click alert view by itms-services://?action=download

    hi,
    is any possible to get result after click alert view by using [[UIApplication sharedApplication] openURL:@"itms-services://?action=download-manifest&url...
    when i close app, the alert view ([[UIApplication sharedApplication] openURL) is aleady exist, is it not uialertview?, i can't find any alert view by
    for (UIWindow *keyboardWindow in [[UIApplication sharedApplication] windows])   {
            if ([[keyboardWindow description] hasPrefix:@"<UIALERT"] == YES) {
                isExists = YES;
    any help, thanks.

    I have the MS-6968 device and i want to use driver 1.4.x or 3.0.x. I found the driver 1.4.2.10 but i cannot find any WIDCOMMSecurity code.
    So, can anyone give me a link for BTWPatcher.exe???
    It cannot be found here (Jon's Bluetooth ) anymore.
    Thanks

Maybe you are looking for