Message type in BDCMSGCOLL Structure in Call transaction using BDCDATA

Hi,
We are facing issue while capturing message in BDCMSGCOLL structure in Call transaction using bdcdata. The message which are like
Message 'Message Text' Type 'S' Display LIke 'E' .
This message is captured as Success on the Message structure instead of error & user are asking to update it as Error as it is looking like Error message to the end user.
Please provide resolution to the issue.
Regards,
Kapil

Hi Venkat,
I am not doing any upload, i am just doing a replay of the transaction ME21 & in that there are many error message which encounter while creating a PO but when i have check the logic , they are basically a success message which are display like Error so when i have called ME21 transaction using below statement
call transaction ME21 using BDCDATA
                                        into messages bdcmsgcoll.
I am getting the message as success only since the message are of type success but as they are display like E , so user want that in msgcoll structure these messages must be shown as Error.
Regards,
Kapil.

Similar Messages

  • Idoc Message type and Process Cosde for CJ01 transaction

    Hi,
    What is the Idoc message type and inbound Process code for CJ01 transdaction?
    Is there Any standard procedure to find out Idoc Mesage type and process codes for particular application?
    Thanks.

    Hi,
    All the sending and receiving programs(transaction) start with BD. e.g. if you want to send the material you can use the BD10 transaction and IDOC is available for the same.
    Go to se93 and search for BD* and look for the description.
    Regards,
    Nilesh.

  • Call transaction using bdc tab and also skip first screen??

    Hi,
    Please help.
    I want to call transaction PA30 fill it with values which are determined only at runtime and then skip first screen.
    The screen doesn't have parameter fields so i cannot use 'set parameter id'.
    I also cannot create a transaction with parameters as I only have these at runtime.
    Anyone done anything like this???

    hi,
      you might be populateing the itab bdc_tab with the corresponding values fronm the recording.
    while doing the recording go until to the screen wher u want to finsih.
    and populate the bdc_tab wit the ok code,screen number and the value.
    this will do.
    for eg see the code below.
    METHOD analyze_log.
      DATA : wrk_extid TYPE balhdr-extnumber.
      DATA : wrk_date(10) TYPE c.
      DATA : it_rspar TYPE TABLE OF rsparams .
      DATA : wa_rspar TYPE rsparams.
      DATA: it_bdcdata TYPE STANDARD TABLE OF bdcdata,
          wa_bdcdata TYPE bdcdata.
      DATA: params TYPE ctu_params.
      CONSTANTS : object TYPE balhdr-object VALUE 'ZKIV_LOG'.
      IF wa_kopf-vertr_nr IS NOT INITIAL.
        CONCATENATE wa_kopf-vertr_nr '/' wa_kopf-nachtr_nr  INTO wrk_extid.
        wrk_date = '01.09.2006'.
        SET PARAMETER ID 'BALOBJ' FIELD object .
        SET PARAMETER ID 'BALEXT' FIELD wrk_extid.
        wa_rspar-selname = 'ALDATE'.
        wa_rspar-sign = 'I'.
        wa_rspar-kind = 'P'.
        wa_rspar-option = 'EQ'.
        wa_rspar-low = wrk_date.
        APPEND wa_rspar TO it_rspar.
      ELSE.
        CLEAR wrk_extid.
        SET PARAMETER ID 'BALEXT' FIELD wrk_extid.
      ENDIF.
    Update BDC tab
    --Call SLG1 using BDC--&
      params-dismode = 'E'. "Show errors only
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPLSLG3'.
      wa_bdcdata-dynpro   = '0100'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_CURSOR'.
      wa_bdcdata-fval = 'BALHDR-ALDATE'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BALHDR-ALDATE'.
      wa_bdcdata-fval = wrk_date.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_OKCODE'.
      wa_bdcdata-fval = '=SELE'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPLSLG3'.
      wa_bdcdata-dynpro   = '0100'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_OKCODE'.
      wa_bdcdata-fval = '=&F03'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_SUBSCR'.
      wa_bdcdata-fval = 'SAPLSBAL_DISPLAY                        0101SUBSCREEN'.
      APPEND wa_bdcdata TO it_bdcdata.
      CALL TRANSACTION 'SLG1' USING it_bdcdata OPTIONS FROM params.
    --End of BDC--&
    ENDMETHOD.
    here wat i m doing is that i dont want the subscreen 101 to be displayed..
    Message was edited by:
            Sandeep S

  • CALL transaction using itab aswell as skip the first screen

    Hi All,
    I am doin BDC for some Ztransaction and i am that transaction using CALL TRANSACTION... but i want to skip the first screen of the Ztransaction as well as pass the Itab .. mode .. update and message table.... how can i do it...
    CALL TRANSACTION Z... USING iTAB UPDATE DATE MODE A  message bdcmsgcoll AND skip THE FIST SCREEN.. how to acheive it....

    PERFORM BDC_DYNPRO      TABLES BDCDATA
                           USING 'SAPLBPT1' '0100'.
    *PERFORM BDC_FIELD       TABLES BDCDATA
                           USING 'BDC_CURSOR'
                                 'BCONTD-BPCONTACT'.
    *PERFORM BDC_FIELD       TABLES BDCDATA
                           USING 'BDC_OKCODE'
                                 '/00'.
    *PERFORM BDC_FIELD       TABLES BDCDATA
                           USING 'BCONTD-BPCONTACT'
                                  V_CONTRACT.
    the above code /recording call the first screen 100 which i dont want...
    below code / recording is for screen 200 which i want to appear directly when i call the transaction....
    skipping the first screen 100..
    PERFORM BDC_DYNPRO      TABLES BDCDATA
                            USING 'SAPLBPT1' '0200'.
    PERFORM BDC_FIELD       TABLES BDCDATA
                            USING 'BDC_OKCODE'
                                  '=SAVE'
    PERFORM BDC_FIELD       TABLES BDCDATA
                            USING 'BCONTD-PARTNER'
                                   V_GPART.
    PERFORM BDC_FIELD       TABLES BDCDATA
                            USING 'BCONTD-ADDINFO'
                                   V_ZONE.         "ZONE(S,N,E,E,NE)
    PERFORM BDC_FIELD       TABLES BDCDATA
                            USING 'BDC_CURSOR'
                                  'EENO_DYNP-ZEILE(01)'.
    PERFORM BDC_FIELD       TABLES BDCDATA
                             USING 'EENO_DYNP-ZEILE(01)'
                                   V_LOG.                 "MESSAGE
    CALL TRANSACTION 'BCT1'    USING BDCDATA
                               MODE MODE UPDATE UPDATE
                               MESSAGES INTO IT_BDCMSGCOLL.

  • URL format to call transaction using WinGUI

    Hello,
    We would like to display SAP transactions in the portal, however they are from the SAP APO sytem and require the the WinGUI setting as they contain graphics that the ITS cannot interpret. WinGUI does not use the ITS. An iView or External Service can be created to display the required transactions using the SAPApplication.Transaction but as the screens are made up of several windows we would like them to open up full screen. The standard iView can open in a new screen but the window opens in a different place depending on the user's internet settings. To solve this a java iView could be written to dictate the starting point and size of the window but I am having trouble with the URL of the transaction. Using WebGUI the following format can be used to call a transaction:
    <System.Access.ITS.Protocol>://<System.Access.ITS.HostName><System.Access.ITS.Path>/webgui/!?transaction=<SAP_Dynp_AutoStart%><SAP_TCode>%20<SAP_Dynp_Params%>&client=<System.Client>&language=<Request.Language>&accessibility=<User.Accessibility>
    Does anyone know the format of the URL to call a transaction using wingui (it doesn't work to substitute wingui for webgui in the format above)?
    Thanks for your help,
    Katie

    HI,
    You need to write the codition like below,
    If Message = 'Successful'
    If Button = 'SUBMIT'
       Call Transaction 'ZABC'.
    Endif.
    Endif.
    Regards
    Sudheer

  • CAll transaction using Adobe

    Hi 
    My Requirement is call to a transcation ex: VA01 using ADOBE thru webservice(Fn module input-> sales order no).
    The transaction shld be called when user hit the SUBMIT button Adobe interactive form.
    I can create the button in webdynpro and called the screen using the below method. Its working.
    lo_window_manager->create_external_window(
    exporting
    url = url
    receiving
    window = lo_window ).
    But the requirement is only to call transaction when the user hit the submit button in the Adobe form.
    It would be helpful if get an idea regarding the same.
    Thanks
    Arun

    Hi
    Thanks for all your replies.
    Sanoosh  
    I tried to code in the function module. when submit the button in Adobe Interactive form is calling the Fn module (webservice).
    But I couldnt decalre the wd_comp_controller->wd_get_api( ).
    wd_comp_controller is an interface. how to decalre this interface in the function module source code.
    Here is the complete code I tried in Function Module.
    DATA: url TYPE string,
            host type string,
            port type string.
    *Call below method to get host and port
      cl_http_server=>if_http_server~get_location(
         IMPORTING host = host
                port = port ).
    *create URL
      CONCATENATE 'http'
      '://' host ':' port
      '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'
       INTO url.
    *get the window manager as we are opening t code in external window.
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_window TYPE REF TO if_wd_window.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    call the url which we created above
      lo_window_manager->create_external_window(
      exporting
      url = url
      receiving
      window = lo_window ).
      lo_window->open( ).
    Thanks & Regards

  • RE-FX:call transaction using bdc-tab:No bdc_okcode for swapping table-entry

    Hello,
    I am trying to call transaction RERAOP (module RE-FX) to make an accounting transaction. There is 1 debit posting and 1 credit posting in a grid. Selecting the debit posting, a details scrren is shown, consisting of 2 registers.
    On the first register you have to fill different fields. At this point it isn't possible to select the second register. The second (credit) posting is diplayed when you hit the enter key. After the fields in the details screen of this (credit) postings have been filled, it is possible to swap back to the first (debit) posting with a double-click on the first entry of the postings-table.
    Finally I come to the point ...
    If I record these steps (batch-input recorder) and generate an report of this code there is no bdc_okcode for the above mentioned swap back to the debit posting. While executing this report I get a lot of error message because the swap back to the debit posting doesn't work (--> because of the missing bdc_okcode) and therefore the batch input tries to fill fields which are not on the active screen (because they are on the 2. register which is not displayed).
    Hope that there is someone out there who:
    1. Understands my miserable english   and
    2. has an advice for me.
    Thanks in advance!!!
      Stephan
    Edited by: Stephan Scholze on Apr 22, 2008 1:34 PM
    Edited by: Stephan Scholze on Apr 22, 2008 2:24 PM
    Edited by: Stephan Scholze on Apr 22, 2008 3:19 PM

    Not sure how much I can help as we don't run RE-FX (RERAOP - what's the program name btw?) at any sites I work at, but a couple of general BDC things you might try (based on problems I've had with BDCs to other Tcodes)...
    When you are in that transaction normally do a right click to see what function codes are defined as there might be one there that allows you to switch between these debit & credit data entry places (how are they rendered, btw - are they ALV grids or what?  If they are table controls then you should be able to position the cursor on row 1 and trigger an F2 double-click)... also look at the PF-STATUS carefully in case (once again) there is a function code that lets you swap from DR to CR & vice versa... and even browse the source code in the user-command for the screen might give a clue as to how to achieve this.  Of course it may not be possible if the data entry is control based i.e. the input areas are provided in the SAPGui not the application server (such as the text editor & ALV grids)... in which case you start hunting for BAPIs and function modules and the like, or end up having to pass data into the transaction via something like an "export" and catch it inside a user exit or enhancement via an "import"... all rather messy, but quite possible.
    Jonathan

  • SAP MII 14.0 - Calling Transactions using SOAP Runner fails

    Hello All,
    We are calling transactions in SAP MII 14.0 from external apps using SOAP Runner and we are passing the login info in the payload. But we are getting the following error.
    We are passing the following in the payload.
    <xmii:LoginName>Username</xmii:LoginName>
    <xmii:LoginPassword>Password</xmii:LoginPassword>
    We are getting 401 unauthorized as the user name and password is not propagated to the MII.
    It works if we supply the info explicitly when we invoke the URL.
    Thanks,
    Kiran

    Hello Rajesh,
    I don't think that will be allowed. We usually pass the credentials in the payload and it has always worked for us in MII 12.1. But in MII 14.0 it does not seem to be working.
    Thanks,
    Kiran

  • Problem in call transaction using FD33 t code

    Hi all i'm developing a report in that in that i'm calling a tcode FD33.
    I want to skip the initial screen.For that i need to pass Customer , Credit control area and status from my program to that tcode.
    But my problem is that how to pass the value to check box.
    i.m writing the following code
       "Set parameter ID for transaction screen field
            SET PARAMETER ID 'KUN' FIELD W_ALV-KUNNR.
            SET PARAMETER ID 'KKB' FIELD W_ALV-VKORG.
           "Execute transaction FD33, and skip initial data entry screen
            CALL TRANSACTION 'FD33' AND SKIP FIRST SCREEN.
    So how to set the value of the STATUS check box.
    thanks in advanced.
    Dheeraj

    use:
    data: dynnr(40) value '/210'.    "or number of another dynpro you wish to go
    SET PARAMETER ID 'CDY' FIELD dynnr.
    A.

  • CALL transaction using generic user.

    Hi experts,
    I have a   CALL TRANSACTION, which code is: 'ME54' USING BDC_TAB MODE 'E' UPDATE 'S'.
    I have previosly defines the BDC_TAB. Is is a backgroud process executes with an event. The sy-uname there is the same as the user that has lauched the event. I want this to be executed with a generic user, example GENUSER instead of the one that really launches the event.
    ¿Is this possible?
    Thank-you very much,
    Artur.

    Hi,
    The only way I can think of at the moment is to extract your CALL TRANSACTION into a separate self-contained program (which it may already be looking at your post).  Then use FM JOB_OPEN, JOB_SUBMIT (changing the parameter AUTHCKNAM to you generic user) and JOB_CLOSE (with STRTIMMED = abap_true).
    This obviously gives rise to other problems such as knowing when the job finished etc but this depends on your overall design and if this is important or not.
    Looking at your overall process this does not sound like a problem.  Simply change the background job step for the event - have it call a new program to perform the JOB* FM steps instead which calls your original program that was registered against the event.
    Thanks,
    Pete

  • Message table is not populating in CALL Transaction Method.....

    Hi,
    Im developing a BDC program for Tcode CV01N...Document link...Problem is when document link is created Successfully.then Message table is not getting populated with message....but this working fine when there is a error then it is population.
    what could be the problem...let me know..
    Thanks,
    kiran.

    Hi,
    Usually BDC replicates the standard transaction and captures all the messages that occur in the standard transaction.
    I would request you to check the standard transaction, execute it and see if there is any message captured in success mode. If no message is capture, then your BDC functions correct.
    If you still need do some processing based on the message table, you can do one thing:
    IF gt_message (your message table)  is initial.
    > Do some processing/append your custom messagesince this is successful
    Else.
    --> Do error processing - since this is error record.
    ENDIF.
    Hope this helps
    Regards
    Shiva

  • Rollback a call transaction using CTU_PARAMS

    Is there any combination of CTU_PARAMS and ROLLBACK that can be used to rollback a call txn.  A BAPI is not available for me to use to perform the function I need.

    Hi,
    I dont think there would be any combination available for CTU_PARAMS and ROllback.
    CTU_PARAMS is available only under the following FM`S :
    BDC_RECORD_TRANSACTION
    BDC_RUNNING
    RS_HDBDC_CALL_TC_BATCH_INPUT
    RS_HDBDC_CHANGE_TC_BATCH_INPUT
    Rollback can be done using BAPI_TRANSACTION_ROLLBACK.
    It would be good if you call the Roll back BAPI explicitly instead of doing rollback along with CTU_PARAMS. Make both of them as independent calls.
    Best regards,
    Prashant

  • 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.

  • How to add error message to return structure of calling BAPI from a BADI

    i have a bapi where a badi is triggered.this badi method has just importing and changing parameters.is there any way with which i can add error message to the return structure of calling bapi.please reply at the earliest.High points can be expected.

    thanks got it

  • Avoiding messages in call transaction.

    Hello.
    I would like to avoid messages to be displayed during a call transaction.
    I have already stored them in an internal table, but that doesn't prevent them to appear during execution.
    What should I do?
    Thanks.

    Hi,
    Try
    CALL TRANSACTION tcode MODE 'N'
    Please reward if useful.
    thanks
    Arjun

Maybe you are looking for

  • How can I get Ipad, PC and Android phone to sync calendars again?

    Stopped syncing calendar updates after working fine for a couple of weeks.  I have Windows 7 on PC and use Outlook.  Icloud calendars show items but not on Ipad or phone. And vice versa.

  • O365 SharePoint Online. Search no longer working. Where exactly are crawl logs?

    On o365/SharePoint Online 2013 A few weeks Search stopped working on existing sites in SPO.  New site seem to index fine.  We can't find files and list entries inside doc libs and lists now. I'm looking at Search Settings in o365 and have added mysel

  • System getting hanged whilst using Insert into table select * from table

    I have a peculiar problem. I am using the below statements: Query 1: insert into table ppms.erin_out@ppms_dblink select * from erin_out; Query 2: insert into table ppms.erin_out@ppms_dblink values(23,'dffgg',12',dfdfdgg,dfdfdg); I am in 'interfaces'

  • Session Sharing between Webapps

              Hi everybody,           I have read that session sharing between webapps is possible since Wls 6.1 using           the same name           for a cookie in the webapps.           I have created a webapp named myPortal (for example) and a sec

  • I never set a firmware password?

    I have a late 2013 MBP Retina 13' that says it needs a "firmware" password to open recovery mode even though I never set one , I had to get my MBP