How to get a message from call transaction in RFC call

Hello :
I would like to ask one favor i make a 2 call transaction in a RFC funtion when i make the first CALL TRANSACTION using te next statement.
    CALL TRANSACTION 'F-43'
      USING bdcdata MESSAGES INTO messtab2 OPTIONS FROM l_fromopt.
I recive the number of the document in the field  sy-msgv1 from the message table messtab2 , then i make the second  CALL TRANSACTION  and i am waiting to get the other number of the document from the table messtab3  using the next statatement.
     CALL TRANSACTION 'FIBLFFP'
        USING bdcdata MESSAGES INTO messtab3 OPTIONS FROM l_fromopt. but now the table messtab3 don't send the number of document , and i need to get the number of this document for making a REFERENCE.
thanks a lot for you help

FORM bdc_transaction USING tcode TYPE tcode.
  DATA: l_mstring(480).
  DATA: l_subrc  TYPE sy-subrc,
        lwa_t100 TYPE t100.
  DATA : gv_ctumode TYPE ctu_params-dismode VALUE 'A'.
call transaction using
BREAK-POINT.
  REFRESH gt_messtab.
  CLEAR gwa_messtab.
  gv_ctumode = gc_ctumode.
  CALL TRANSACTION tcode USING gi_bdcdata                "#EC CI_CALLTA
                   MODE   gv_ctumode
                   UPDATE gc_cupdate
                   MESSAGES INTO gt_messtab.
  l_subrc = sy-subrc.
  IF sy-subrc <> 0.
    WRITE: / 'CALL_TRANSACTION',
             tcode,
             'returncode:',
             l_subrc,
             'RECORD:',
             sy-index.
    LOOP AT gt_messtab INTO gwa_messtab.
      CLEAR lwa_t100.
      SELECT SINGLE * FROM t100 INTO lwa_t100  WHERE sprsl = gwa_messtab-msgspra
                                AND            arbgb = gwa_messtab-msgid
                                AND            msgnr = gwa_messtab-msgnr.
      IF sy-subrc = 0.
        l_mstring = lwa_t100-text.
        IF l_mstring CS '&1'.
          REPLACE '&1' WITH gwa_messtab-msgv1 INTO l_mstring.
          REPLACE '&2' WITH gwa_messtab-msgv2 INTO l_mstring.
          REPLACE '&3' WITH gwa_messtab-msgv3 INTO l_mstring.
          REPLACE '&4' WITH gwa_messtab-msgv4 INTO l_mstring.
        ELSE.
          REPLACE '&' WITH gwa_messtab-msgv1 INTO l_mstring.
          REPLACE '&' WITH gwa_messtab-msgv2 INTO l_mstring.
          REPLACE '&' WITH gwa_messtab-msgv3 INTO l_mstring.
          REPLACE '&' WITH gwa_messtab-msgv4 INTO l_mstring.
        ENDIF.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id        = gwa_messtab-msgid
            lang      = sy-langu
            no        = gwa_messtab-msgnr
            v1        = gwa_messtab-msgv1
            v2        = gwa_messtab-msgv2
            v3        = gwa_messtab-msgv3
            v4        = gwa_messtab-msgv4
          IMPORTING
            msg       = l_mstring
          EXCEPTIONS
            not_found = 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.
        CONDENSE l_mstring.
        IF NOT l_mstring IS INITIAL.
          WRITE: / gwa_messtab-msgtyp, l_mstring(250).
          MESSAGE l_mstring TYPE 'I'.
        ENDIF.
      ELSE.
        WRITE: / gwa_messtab.
      ENDIF.
    ENDLOOP.
    SKIP.
  ENDIF.

Similar Messages

  • How to get the message from a Runnable class

    The Schedule class is actually a JFrame, what I want to do is to "get" the message from Scheduler Class and display it in a JTextField, to let user know what is doing.
    How can I approach this?
    public class Schedule {
        @SuppressWarnings("static-access")
        public static void main(String args[]) throws InterruptedException {
            final Scheduler s = new Scheduler();
            Thread t = new Thread(s);
            t.start();
    public class Scheduler implements Runnable{
    private static int actionType;
    private static String msg;
        public static void setMsg(String msg) {
            Scheduler.msg = msg;
        public static String getMsg() {
            return msg;
        public void run() {
            //System.out.println((int)(Math.random() * 1000));
            actionType = 1;
            while(true){
                try {
                    switch(actionType){
                        case 1:
                            setMsg("Process actionType: "+actionType);
                            break;
                            case 2:
                            Thread.sleep(2000L);
                            setMsg("Process actionType: "+actionType);
                            break;
                            case 3:
                            Thread.sleep(2000L);
                            setMsg("Process actionType: "+actionType);
                            break;
                            case 4:
                            Thread.sleep(2000L);
                            setMsg("Process actionType: "+actionType);
                            break;
                    actionType++;
                    if(actionType>4){
                        actionType = 1;
                } catch (InterruptedException ex) {
                    System.out.println("Scheduler.run:"+ex.toString());
    }

    Or with only one loop:
            int actionType = 0;
            while (true)
                actionType = (actionType % 4) + 1;
                msg = "Process actionType: " + actionType;
                try
                    Thread.sleep(2000L);
                catch (InterruptedException ex)
                    System.out.println("Scheduler.run:" + ex.toString());
            }

  • How to get error message from the BPEL process

    Hi,
    We have some BPEL processes running in BPEL PM 10g. If any of these BPEL process fails, we would like to get the error message caused this process to fail.
    Please let me know where does the BPEL proccess holds (table/file) these details. or is it possible to get the error message programatically.
    Thanks

    You can go through below link that can help
    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/faults.htm#sthref1186
    http://bpelknowledge.blogspot.com/2010/07/error-conditions-that-cannot-be-handled.html
    http://blog.whitehorses.nl/2009/11/03/error-handling-in-soa-suite-11g/
    Hope it helps!!
    Thanks
    AJ

  • Call Transaction Through RFC

    Hi ,
    I am trying to do a call transaction through RFC call from a Middleware which is a CPIC user (only communication Non dialog User ) . 
    Call  transaction does gets executed without any error but it does not update any data.But when I run it through my user id it works absolutely fine .
    I am not sure what is causing the issue
    Security authorization?
    RFC through Non Dialog user ?
    Paramters missing in RFC  ?
    Paramatertes missing in call transaction option?
    If anyone of you has faced a similiar issue then please let me know the path forward.
    Thanks
    Vikas

    Hi Vikas,
        The problem is in Authorization? And check the mode of Process Synchoronus or asynchoronous? Both the RFC and CALL transaction should be Same /
    Thanks
    MAnju

  • How do I get received messages from others to show up on my different Apple devices, such as my iPhone

    How do I get received messages from others to show up on my different Apple devices, such as my iPhone or iPad or iPod Touch, etc. I can see their reply on the device I was using at that moment but not on the other devices even iMessaging is turned on. Is there a way to refresh to incoming messages when one picks up one of their other Apple devices?

    Hi there lkbluntzer,
    You may find the information in the article below helpful.
    Send and receive messages
    http://help.apple.com/iphone/7/#/iph01ac18d71
    See what time a message was sent or received. Drag any bubble to the left.
    -Griff W. 

  • When I sync my Ipad and Mac I get a message from itunes to allow access with an email address I no longer use and asks for a password I don't know how do I remove the old email

    Whwn I sync my ipad I get a message from itunes to sign into my account but the email used is not my email and I don't have a password for the email it used - how do I get rid of the email address for itunes on the ipad - itunes on the Mac work just fine - but not on the ipad

    Hello Tonchee
    If you are seeing an Apple ID that is not yours, then you have purchased content on your iPad that is tied to that Apple ID. You would need to know that password or remove the content that is associated with that Apple ID.
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • And when i try to Re-install itunes i get a message from itunes ERROR 7 (windows error 1114), now how do i sort this out ???

    and when i try to Re-install itunes i get a message from itunes ERROR 7 (windows error 1114), now how do i sort this out ???

    Hey deepakmenonfrompune,
    Thanks for the question. I understand that you are experiencing issues with iTunes for Windows. The following resource may help to resolve your issue:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Some Windows customers may experience installation issues while trying to install or open iTunes 11.1.4.
    Symptoms may include:
    "The program can't start because MSVCR80.dll is missing from your computer"
    "iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows Error 126)”
    "Runtime Error: R6034 - An application has made an attempt to load the C runtime library incorrectly"
    "Entry point not found: videoTracks@QTMovie@@QBE?AV?$Vector@V?$RefPtr@VQTTrack@@@***@@$0A@VCrashOnOverf low@@***@@XZ could not be located in the dynamic link library C:\Program Files(x86)\Common Files\Apple\Apple Application Support\WebKit.dll”
    Resolution
    Follow these steps to resolve the issue:
    Check for .dll files
    1. Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    2. If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    3. Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    1. Uninstall iTunes and all of its related components.
    2. Reboot your computer. If you can't uninstall a piece of Apple software, try using theMicrosoft Program Install and Uninstall Utility.
    3. Re-download and reinstall iTunes 11.1.4.
    Thanks,
    Matt M.

  • Hello! i have get a.message from apple wich tells me. that i have woon 10,0000$  i would like tto know how ryo contact them to get my money plesa help me

    Hello. i have get i message from pple wich tells ne.that i have won 10,000$ i would like to konw how to contact with.them so i can get my money please help me

    To report potential e-scams, please go the Internet Crime Complaint Center and file a report.

  • Why am I suddenly getting this message from a page I have been using for 6 months(Error code: sec_error_unknown_issuer) how do I get my page back?

    Why am I suddenly getting this message from a page I have been using for 6 months(Error code: sec_error_unknown_issuer) how do I get my page back?

    Did you reset Firefox recently?
    *https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems
    If that is the case then you may have lost intermediate certificates that were stored in the cert8.db file in the Firefox profile folder.
    Check out why the site is untrusted (see the Technical details) and if this is caused by a missing intermediate certificate then see if you can install this intermediate certificate from another source.
    Some firewalls monitor secure (https) connections and send their own certificate instead of the website's certificate.
    You can retrieve the certificate and check details like who issued certificates and expiration dates of certificates.
    *Click the link at the bottom of the error page: "I Understand the Risks"
    Let Firefox retrieve the certificate: "Add Exception" -> "Get Certificate".
    *Click the "View..." button and inspect the certificate and check who is the issuer.
    You can see more Details like intermediate certificates that are used in the Details pane.

  • HT204380 I am new to Facetime.  I want to be able to talk to my iMac from my Macbook.  When I try to connect via email I get a message that says the person being called "is not available for Face Time".

    I am new to Facetime.  I want to be able to talk to my iMac from my Macbook.  When I try to connect via email I get a message that says the person being called "is not available for Face Time".

    Hi PhiDor,
    Thanks for visiting Apple Support Communities.
    See this article for some information that can help:
    FaceTime for Mac: Troubleshooting FaceTime
    http://support.apple.com/kb/ts4185
    Regards,
    Jeremy

  • HT4528 i recently switched to an android and now i cant get any messages from other iphone users due to imessage. how do i fix this?

    i recently switched to an android and now i cant get any messages from other iphone users due to imessage. how do i fix this?

    As Peter noted and please pay attention to this line
    "If you can't deactivate iMessage after you perform the steps above or you can't access the iPhone, please contact Apple Support"

  • After trying to install the new update, I am getting a message from Windows saying that an MC file is missing, reintall Itunes-which I have now done 3 times. How do I fix this?

    I received the new update from Itunes and after installing, I couldnt get into my Itunes.  I get a message from Windows saying that an MC file is missing and  to reinstall I tunes.  I have reinstalled 3 times, the first time I didn't remove the old version, I installed the update over it.  Next I tried the repair function under Control Panel.  After that, I uninstalled Itunes and reinstalled again from the website.  I still get the same message about missing files from Windows.

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • How can i get my messages from my old 3g to my 4s? The iphone 4s is already in use for a half year and i didn't start it from a backup

    I got a big Problem. i lost my iphone 3g a half year ago and bought myself a iphone 4s. Now my 3g found its way back to me and i need to get the messages from the 3g to my 4s.
    I didnt start the 4s with the backup. i made a new iphone so i dont have the messages from the 3g.
    is there a possibility to import the messages from the 3g to the 4s?
    Thanks for help!

    You can try this: Edit your 4S backup by adding the messages from your 3G backup. You'll need third-party software, like this:
    http://www.iphonebackupextractor.com/
    Caution: Copy your existing backup to your desktop first. One mistake & you'll make the entire backup unusable. Obviously, this is not supported by Apple, thus if you attempt to do so, you do so at your own risk.

  • How to get the value from a JavaScript and send the same to Java file?

    Hi.
    How to get the value from a JavaScript (this JS is called when an action invoked) and send the value from the JS to a Java file?
    Thanks and regards,
    Leslie V

    Yes, I am trying with web application.
    In the below code, a variable 'message' carries the needed info. I would like to send this 'message' variable with the 'request'.
    How to send this 'message' with and to the 'request'?
    Thanks for the help :-)
    The actual JS code is:
    function productdeselection()
    var i=0;
    var j=0;
    var deselectedproduct = new Array(5);
    var message = "Are you sure to delete Product ";
    mvi=document.forms[0].MVI;
    mei=document.forms[0].MEI;
    lpi=document.forms[0].LPI;
    if(null != mvi)
    ++i;
    if(null != mei )
    ++i;
    if(null != lpi)
    ++i;
    if(null != mvi && mvi.checked)
    deselectedproduct[++j]="MVI?";
    if(null != mei && mei.checked)
    deselectedproduct[++j]="GAP?";
    if(null != lpi && lpi.checked)
    deselectedproduct[++j]="LPI?";
    if( 0!=j)
    if(i!=j)
    for (x=0; x<deselectedproduct.length; x++)
    if(null != deselectedproduct[x])
    message =message+ "-" +deselectedproduct[x];
    alert(message);
    else
    //alert(" You cannot remove all products!");
    return false;
    return true;
    }

  • Regarding return message from custom transaction

    Hello all,
              i have a scenario where i am calling a custom transaction and trying to get return messages, but i am not getting any return message instead i am getting error message in that transaction even if i am using mode 'N' in my call.
            Do my custom transaction need to follow some methodology which will return error message, as messages are returned when standard call transaction is made.
    Thanks
    raju N

    hello abi,
            i am getting a empty message table, thing is that from the custom transaction they are calling other standard transaction and getting error message. if any error occurs they are using 'message id'  syntax and displaying and if any error occurs internally in that transaction they are using 'message e001'. this kind of error messages are returned to my call transaction but the other one is not getting populated.
    Thanks,
    raju N
    Message was edited by:
            krishnam Raju N

Maybe you are looking for

  • Cost center (KOSTL) is not updating in HR master table for infotype 0001

    Hi ABAP gurus, We have one interface where we are posting the HR master data using the IDOC (IDOC_INPUT_HRMD) into SAP. While updating cost center, We have one issue regarding infotype 0001. It is working fine for all the fields except: KOSTL, ORGEH,

  • How can I compile in Xcode?

    I'm obviously very new at this. I don't know how to compile my Hello World C++ code. Every option in the Build menu is disabled except for Allow ZeroLink. I'm extremely frustrated. I used TurboC before in Windows when I was studying C and though it's

  • INSPECTION LOT-SAMPLSIZE

    Dear Gurus, In the Material Master we have maintained Inspection type-->04,inspection lot are created on confirmation,Result recording and UD are done.Sampling procedure is maintained and Sample size is 1. My client is in Cold rolling business,they c

  • Does the Number type in Oracle always map to the Java BigDecimal object

    We have noticed that whenever we create a column in a table of type smallint, integer, real, etc. that the type in sqlplus always shows up as number(x). Our problem is that this type always seems to map to java.math.BigDecimal through JDBC. Is this a

  • Display popup messages

    hi, i am using adf11g,jdeveloper 11g.in form i drag and drop one vo. in that form,for one attribute which is used as LOV,i have written valuechangelistener method. in that method i wrote some code for validaiton.when validaiton occur i am able to sho