ME51N BDC Success message

Hi ,
I am trying to create new purchase requisition using ME51N BDC. BDC is not returning any success message after successfully creating requisition. If I do it with out BDC, directly from ME51N I am getting success message 06-402.
I need to capture the created document number. Any ides?
Thanks for your time.

are you using Call Transaction method ? if so use update mode as  'S'..
ME51N is the enjoy transaction so bdc may not work properly
so try to do recording for ME51 Transaction ,make sure that use BDCMSGCOLL  Structure to get log message.
Better to use BAPI instead of BDC ,BAPI FM is 'BAPI_REQUISITION_CREATE'
for example just go through...
http://www.sap-img.com/bapi.htm
http://www.sapgenie.com/abap/bapi/example.htm
Thanks
Seshu

Similar Messages

  • Suppress BDC success message

    Hello Everyone,
    I have a kind of problem with running BDC transaction. I donu2019t know how get rid off success status message. I run MD03 transaction. Like this:
    PERFORM bdc_transaction TABLES messtab USING 'MD03' ctu mode update.
    Where  CTU is set to u2018Xu2019 MODE is set to u2018Nu2019 and UPDATE is set to u2018Lu2019. As you can see table for collecting messages is also given. But in the end system displays the green message in status bar although I really donu2019t want. Iu2019ve looked through the network but found nothing. The program that call the BDC transaction works in foreground. Itu2019s a customer Z program which among the others does also this.
    Is there anything I could do?
    Regards
    Pawel

    I am not quite sure about it. The form BDC_TRANSACTION is the SAP standard form used with BDC recording.
    FORM BDC_TRANSACTION TABLES P_MESSTAB
                         USING  P_TCODE
                                P_CTU
                                P_MODE
                                P_UPDATE.
    DATA: L_SUBRC LIKE SY-SUBRC.
      IF P_CTU <> 'X'.
        CALL FUNCTION 'BDC_INSERT'
             EXPORTING  TCODE     = P_TCODE
             TABLES     DYNPROTAB = BDCDATA
             EXCEPTIONS OTHERS    = 1.
      ELSE.
        CALL TRANSACTION P_TCODE USING BDCDATA
                         MODE   P_MODE
                         UPDATE P_UPDATE
                         MESSAGES INTO P_MESSTAB.
      ENDIF.
      L_SUBRC = SY-SUBRC.
      REFRESH BDCDATA.
      SY-SUBRC = L_SUBRC.
    ENDFORM.
    So as you can see the transaction is being called exactly in the way you told me to. Unfortunately
    Edited by: Pawel Kobylinski on Sep 1, 2010 3:21 PM

  • Report with BDC not displaying success message when run in Background

    I am running a  BDC report in Background mode.The below statement  is not capturing the Success message when a document is posted.But when I am running the same in ForeGround mode it is capturing and is displayed in the output.Can anyone please help me in understanding why this is happening and how can I resolve this.
    CALL TRANSACTION 'MB1C' USING bdcdata MODE mode UPDATE 'S'
         MESSAGES INTO messtab.

    Hi Madhu,
    I think your BDC didnt generated any document when you run it in 'N' screen mode.
    Debug your program when you run it in background
    Goto Tcode :SM37
    Select the job ( march checkbox )
    ==> in command prompt enter 'JDBG'
    ==> Then you can start reexecting the job .
    You can check the sucess messages accordingly in debug mode
    Also add a read statement on messtab for msgtype = 'S'.
    Thanks
    Bhanu

  • How shall I get the success message when I do BDC for Trans.9KE0?

    Hello, everybody!
    When I do BDC for Tcode 9KE0, which does PCA documents re-posting, I use statement as below:
          CALL TRANSACTION '9KE0' USING bdcdata MODE p_mode
                                  MESSAGES INTO itmsg.
    What I want to do is to get all messages in the ITAB "itmsg". But it's strange that I can't get the message to specify the document number when the document has already been successfully created. But I get the success message if I post it 9KE0 in forground instead of BDC.
    Is there any bug in my bdc program or in the standard function of 9KE0?
    Thanks
    regards,
    Jialu Shen

    Hi Jialu
    I faced the same problem.
    Please use
    CALL TRANSACTION '9KE0' USING BDCDATA
                         OPTIONS FROM W_OPTIONS
                         MESSAGES INTO MESSTAB.
    W_OPTIONS-RACOMMIT = 'X
    Best Regards
    Naresh

  • BDC - error/success messages

    Hi All,
    I'm running a BDC program for PA61 but I'm getting wrong return message codes coming back after the upload. For example, if an unassigned personnel number is used a 'success' message code is sent back to my program and not an 'error' message code, as expected. Is there any way in BDC to specify a way around this issue. Thanks.
    Regards,
    Manu.

    Manu,
    In general, you have to do some controls in SAP for upload data if it is possible. Let me give you an example for example we are getting a material number from file and we will use in our BDC program. So before using the material number in BDC program, we have to look at MARA (Material Master Data) table to decide it really exits in the system or not.

  • Warnings and success messages in F-02

    Hi Techi's
    I am having a very strange issue in F-02 for posting in G/L accounts. It goes like that.
    When I run the BDC in forground mode, whatever the information and success messages are being trapped are being captured in the IMSG table and later when I process the IMSG table givning perfect results including the last message number 312 (saying document number posted)
    But this BDC would be scheduled in background later and when I run this in background call transaction is not traping the complete information and success messages including the last message number 312 also. 
    My complete processing is based on the last messages only which is the successful document number generation.
    Please tell me why its not capturing that document number generation message. How can I reslove this.
    Please help as soon as possible, its going very terrible now.
    Regards,
    -=Maddu=-

    Hi all
    I have found the solution to my problem. The question was, if I turned off the messages in the web template, is there another way to see the information and warning messages.
    The way to do this is to put &WARNINGS_VISIBLE=X and/or &INFORMATION_VISIBLE=X at the end of the URL.
    Thanks for all who helped.
    Edited by: Nicholas Chia on Jul 20, 2009 12:43 PM

  • Skillbuilders modal page - success message not closing in Internet Explorer

    Hello,
    I'm using Skillbuilders modal page plugin on Apex 4.1.
    The plugin works great in all browsers except in IE, where I'm unable to close the success message by clicking on the "x" in the upper right corner.
    I'll explain further.
    I have a report on, say, page 10, and I'm editing each row in a modal page (page 11). Upon saving the changes, the modal page closes and a success message is shown on the page 10. I can see the message both in Firefox and IE, however, I am unable to close it in IE.
    When I inspect the success message using Firebug in Firefox, I see that I have:
    <div id="messages" style="display: block;">
    <div id="success-message" class="success">
    <img class="remove-message" onclick="$x_Remove('success-message');" alt="" style="float:right;" src="/i/delete.gif">
    Action processed.
    </div>
    </div>However, when I inspect the success message in IE, I see:
    <div id="messages">
    </div>The success message is shown on the page, but it doesn't show in the page source code, and clicking on the "x" doesn't close it.
    I've tried it with several themes, the problem persists.
    Does anyone have any idea what might be the problem here?
    Did someone have a similar problem?
    Thank you!

    I've been looking at it, kind of gutted that indeed the semi-colon means nothing. Was sure that was it, and then didn't bother to test it in the template anymore as it ate so much time already. That should teach me...
    Anyway, I was puzzled too. Apparently it has to do with IE8 and jQuery appending code to the document, whether it is .append or .before. The element is there and all, but the onclick just does nothing. Why did it work after editing it? Probably because IE was then able/willing to pick the attribute up.
    I've fiddled with it over and over, trying to find something ,googling it, but couldn't really find a certain cause nor fix. Putting   in the anchor? Nope. Onclick reacting only on second click? Nope. Just do an alert? Nope. Just nothing works at all. I really just gave up. IE8 is just such a headache that by trying to "fix" it in its ways you're off worse.
    In the end I fixed it in another way. My template is different than yours but the technique is the same.
    I removed the onclick attribute from the success message region, on both page templates. If it ain't gonna work I don't want it there (good riddance too). I changed the href attribute too by just putting "#" in, which is probably just me being pedantic. This is my result success message template:
    <section class="uRegion uWhiteRegion uMessageRegion clearfix" id="uSuccessMessage">
      <div class="uRegionContent clearfix">
        <a href="#" class="uCloseMessage"></a>
        <img src="#IMAGE_PREFIX#f_spacer.gif" class="uCheckmarkIcon" alt="" />
        <div class="uMessageText">
          #SUCCESS_MESSAGE#
        </div>
      </div>
    </section>To be able to close it, I added some javascript in the page header:
      <script type="text/javascript">
        $(document).delegate(".uCloseMessage", "click", function(){$(this).closest(".uMessageRegion").remove(); return false;});
      </script>This is much in the way of a dynamic action with scope "live". I didn't want to bother with having to put a dynamic action on each page, and is why I did it this way. It works fine in each browser too, so hurray.
    Your solution works too of course, it's much the same. I wouldn't call it a "workaround" too, since it didn't work initially anyway. I wouldn't look further and stick with what works best for you. :)

  • How to display success message when data is changed in the custom tab in MM

    Hi,
    I have added a new custom data tab in the MM01/MM02/MM03 transactions. Whenever I do changes to fields in the custom tab in MM02 transaction, and no changes in the standard tabs, I will get a message stating "No Changes Made".
    But if I do changes in the standard tabs, it works as usual with display of message "Changes to particular material has been done.
    Please let me know, if anyone of you know, how to display the success message if the changes to the custom tab is done.
    Thanks in advance,
    sudhanva

    Hi Sudhanva,
    The exit EXIT_SAPLMGMU_0001 is a function exit that you can use for custom validation but not to add custom tab/screen.
    But the message issued by SAP is not related to this Function Exit.
    If you have used a Screen Exit, then there must be some Function Exits also in the same Enhancement using which you can assign the value of custom fields to/from the standard structure. Thus when the value of any custom field is changed the system can understand that the some changes have been changed and will  not issue the message.
    In case you have used a BADI, there can be other methods in the BADi using whcih you can assign the value of custom fields to/from the standard structure. This might also prevent the message from being displayed.
    I could try giving you further details if you can provide the name of the Enhancement/BADi that you used to add the additional tab.
    Hope this helps.
    Regards,
    Abhisek.

  • How can I include a success message in a drag and drop interaction - I don't see this option in the Actions on success options, and cannot figure it out?

    How can I include a success message in a drag and drop interaction - I don't see this option in the Actions on success options, and cannot figure it out?

    I suspected you used the eye icon on the timeline to hide the message, but that one has no impact whatsoever on the published version. It is only meant to be used for editing reasons on the stage, to hide objects temporarily on a crowded stage. It is confusing, certainly in CP8 where for both instances the same eye icon is used. In previous versions the Properties panel had a checkbox for 'Show in Output', which was IMO much clearer than this eye icon. But of course, that is only my personal opinion.

  • How to include HTML tags in a success message?

    I have seen a few posts on this topic in the past, but have not seen a definitive response...apologies if this has been answered.
    I would like to have a dynamic process success message that includes some HTML tags in it - in this case an anchor tag that can jump the user back to the object he/she just edited.
    So, I build up a dynamic success message in a page variable - say P10_SUCCESS_MSG - and set the Process Success Message field in the relevant Process to &P10_SUCCESS_MSG.
    The problem is that when the page template substitutes in my message for #SUCCESS_MESSAGE# it looks like it also escapes any HTML tags, so the markup gets displayed literally on the page.
    Is there any recommended way to override or get around this behavior?
    Many thanks,
    Bill

    I just noticed that it looks like the success message is passed around on the URL - when I look at my URL after a successful form process, I see &success_msg=BIG_UGLY_ESCAPED_SUCCESS_MSG_HERE embedded in the URL. If this is the case, I can see why - technically - it ends up getting escaped. Looks like I may have to figure out my own hack for success message processing - maybe some weird post-processing of a placeholder success token that I replace in a page 0 process or something...

  • How to display success message in function module

    Hi Experts,
                      I am developing new function module regarding URL finder. As per my requirement ,
                                                 If USER ID is not provided -display SUCCESS MESSAGE and Provide sy-uname.
    how to display success message.if possible can You write the code.
    Thanks
    raju

    Hello,
    We can use an exporting parameter like single character field like 'S' for success and 'E' for error instead of a message.
    Another option is you can use the Tables parameter and populate Return table with error or success message. Return table of type 'BAPIRET2'.
    Hope this might help you!
    Regards,
    MM Jaffer.

  • Process Success Message not working

    Hi
    I have created a process to send a mail on some button click...
    The process success message i have given that
    Mail Sent Successfully!
    Though the mail is coming I am not getting the Mail Sent Message!
    Can someone help to let me know what am I missing?
    Thanks
    Ankit

    Ok another fishy question
    Can a process sent a Successful Message without completing the task?
    I get the message Mail Sent though I never receive the mail...
    In test environment apex.oraclecorp.com it is working sending the mail.
    But in production database.us.oracle.com it is not working :(
    I have made the exact copy in production site!
    What can i be missing?

  • Process Success Message not displaying properly

    Hello.
    I know there are many threads about this problem. But i can't get it right.
    I have custom MRU process like:
    DECLARE
      p_updcount NUMBER := 0;
    BEGIN
      FOR i IN 1 .. apex_application.g_f08.COUNT                       
      LOOP
        IF apex_application.g_f08 (i) IS NOT NULL                  
          AND substr(APEX_APPLICATION.g_f20 (i),40) !=
          wwv_flow_item.md5 (apex_application.g_f07 (i),
                    apex_application.g_f08 (i),
                          apex_application.g_f09 (i),
                             apex_application.g_f10 (i),
                             apex_application.g_f11 (i),
                             apex_application.g_f12 (i),
                             apex_application.g_f13 (i),
                             apex_application.g_f14 (i),
                             apex_application.g_f15 (i),
                             apex_application.g_f16 (i),
                             apex_application.g_f17 (i),
                             apex_application.g_f18 (i),
                             apex_application.g_f19 (i)
                             )||'"  />' THEN
         UPDATE table
              SET ...
           WHERE id = ...;
          p_updcount := p_updcount + 1;
        END IF;
      END LOOP;
      :P232_UPDATE_NUMBER := p_updcount;
    END;
    {code}
    In the same process, success message looks like:
    Number of updated records: &P232_UPDATE_NUMBER. .
    Item :P232_UPDATE_NUMBER is text item.
    Even if i set default value in item, it doesn't work. Value is shown in item, but not in message.
    Message looks like: Number of updated records:  .
    Items "Source used" is set to Only when...
    If i set it to Always, ..., value doesn't appear in item.
    Any idea?
    Thanks.
    Regards,
    Dejan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    If i write code to check for updates after header, it is not necesary true that the user already updated some columns?Or am i wrong?>
    The Custom MRU has to be OnSubmit. I was talking about initialization of the Page Item
    To set the value of the item in Session State set the value using Before or After Header Computation or Process.E.g. write After Header Computation for P232_UPDATE_NUMBER > Static Assignment > 0
    . I am not referring to Custom MRU.As I said earlier, if your CustomMRU process runs you should see a number >= 0 in the message. You will need to initialize only, to say 0, only for situations when the Custom MRU does not run (condition evals to false).
    Cheers,

  • APEX does not show 'Process Success Message'

    Hi,
    I was hoping to get help on a weird APEX issue.
    I have two identical APEX pages with the same templates. One of the page does not show the process success message after it inserts to the database. It does insert, just the message does not show up.
    I looked at the page that works and it is identical to this page. Does anyone have any good advice? I would really appreciate it.
    Thanks!

    When I see this, it usually turns out that I forgot to tick the check box for "include process success message" on a "Branch" object.

  • Executing BAPI_PO_CREATE1 in a loop results in multiple success messages

    Hi all,
    I have a process where I need to create multiple POs with one item each. For creating the POs I use BAPI_PO_CREATE1. The creation itself works fine and created POs are also correct.
    But what is a bit confusing is the content of the RETURN table of the BAPI. From the second created PO on I also get ALL messages of the previously created POs although I have a COMMIT WORK AND WAIT after each creation and the return table is always empty when executing the BAPI.
    Example:
    I need to create two POs.
    First run of the BAPI_PO_CREATE: PO A is created and return table has success message "PO A successfully created"
    Second run of the BAPI_PO_CREATE: PO B is created and return table has two success messages: "PO A successfully created" and "PO B successfully created"
    But for the second run I also would expect to get only one success message.
    Why do I get too many messages? Or do I need to initilize the BAPI somehow?
    By the way, I have the same problem with BAPI_PO_CHANGE.
    regards
    René

    Hi,
    so again: the return table is cleared/refreshed all times when executing the loop and a commit is done!
    Unfortunately the whole coding is implemented to the SAP AIF so the AIF is doing the loops. But in debugging I clearly see that the return table is empty before executing the BAPI.
    Here is the coding. The AIF calls the here described function module in a loop and executes a commit work and wait after each call of the FM.
    FUNCTION POST_PURCHASE_ORDER.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(TESTRUN) TYPE  C
    *"     REFERENCE(HASH_TAB) TYPE  /AIF/HASHTAB_T OPTIONAL
    *"     REFERENCE(IDX_TAB) TYPE  /AIF/IDXTAB_T OPTIONAL
    *"  TABLES
    *"      RETURN_TAB STRUCTURE  BAPIRET2
    *"  CHANGING
    *"     REFERENCE(DATA)
    *"     REFERENCE(CURR_LINE)
    *"     REFERENCE(CURR_DATA)
    *"     REFERENCE(SUCCESS) TYPE  /AIF/SUCCESSFLAG
    *"     REFERENCE(OLD_MESSAGES) TYPE  BAL_T_MSG
      DATA: lt_po_items        TYPE TABLE OF bapimepoitem,
            lt_po_itemsx       TYPE TABLE OF bapimepoitemx,
            lt_bapiparex       TYPE TABLE OF bapiparex,
            lt_po_conditionx   TYPE TABLE OF bapimepocondx,
            lt_po_header_texts TYPE TABLE OF bapimepotextheader,
            lt_po_item_texts   TYPE TABLE OF bapimepotext,
            ls_po_headerx      TYPE bapimepoheaderx,
            ls_po_headerx_cust TYPE bapi_te_mepoheaderx,
            ls_po_itemx        TYPE bapimepoitemx,
            ls_po_condition    TYPE bapimepocond,
            ls_po_conditionx   TYPE bapimepocondx,
            l_testrun          TYPE bapiflag-bapiflag.
      CHECK curr_line IS NOT INITIAL.
      REFRESH: return_tab[].
      CLEAR: return_tab[].
      l_testrun = testrun.
    * Get X-structures for PO header
      PERFORM fill_x_structure USING curr_line-po_header 0 CHANGING ls_po_headerx.
    * Create PO Header Custom Fields.
      PERFORM fill_bapiparex USING curr_line-po_header_cust space
                          CHANGING lt_bapiparex[] return_tab[].
    * Get X-structures for PO ExtensionIn fields and post them to ExtensionIn as well
      PERFORM fill_x_structure USING curr_line-po_header_cust 0 CHANGING ls_po_headerx_cust.
      PERFORM fill_bapiparex USING ls_po_headerx_cust space
                          CHANGING lt_bapiparex[] return_tab[].
    * Get X-structure for PO item
      curr_line-po_item-info_upd = 'A'.
      curr_line-po_item-po_price = '1'.
      PERFORM fill_x_structure USING curr_line-po_item 1 CHANGING ls_po_itemx.
      ls_po_itemx-po_item        = curr_line-po_item-po_item.
      curr_line-po_item-po_price = space.
      curr_line-po_item-info_upd = space.
      APPEND curr_line-po_item  TO lt_po_items.
      APPEND ls_po_itemx TO lt_po_itemsx.
    * Get X-structures for PO conditions
      IF NOT curr_line-po_conditions IS INITIAL.
        LOOP AT curr_line-po_conditions INTO ls_po_condition.
          CLEAR ls_po_conditionx.
          ls_po_conditionx-itm_number = ls_po_condition-itm_number.
          PERFORM fill_x_structure_2 USING ls_po_condition 3 0
                                  CHANGING ls_po_conditionx.
          APPEND ls_po_conditionx TO lt_po_conditionx.
        ENDLOOP.
      ENDIF.
    * Get header and item texts
      APPEND curr_line-po_header_text TO lt_po_header_texts.
      APPEND curr_line-po_item_text   TO lt_po_item_texts.
    * Execute BAPI_PO_CREATE1
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader         = curr_line-po_header
          poheaderx        = ls_po_headerx
          testrun          = l_testrun
          no_price_from_po = c_checked
        IMPORTING
          exppurchaseorder = curr_line-po_number_return
        TABLES
          return           = return_tab
          poitem           = lt_po_items
          poitemx          = lt_po_itemsx
          pocond           = curr_line-po_conditions
          pocondx          = lt_po_conditionx
          extensionin      = lt_bapiparex
          potextheader     = lt_po_header_texts
          potextitem       = lt_po_item_texts
        EXCEPTIONS
          error_message    = 1.
      IF sy-subrc = 1.
        IF NOT sy-msgid IS INITIAL
          AND NOT sy-msgty IS INITIAL
          AND NOT sy-msgno IS INITIAL.
          PERFORM util_add_msg USING sy-msgty sy-msgid sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 CHANGING return_tab[].
        ENDIF.
      ENDIF.
    ENDFUNCTION.

Maybe you are looking for

  • What temperatures not to exceed when video editing?

    I have a 24inch Imac 2.66Ghz and I wanted to know what temperatures to watch out for while video editing. Also what would be the best settings for smc fan control for the Imac. I just recently backed up my macbook pro hard drive, which had smc fan co

  • Wifi connected but no internet

    All of a sudden i was watching hulu and it went to 'there is no java enabled for the ads' than i refreshed and tried to to go google and no connection, my laptop was connected at the same time with no issues. I restarted and still it connects but no

  • How to stop this interface??

    HI, Yesterday some interfaces run in prod system under namespace http://sap.com/xi/APPL/Global2 from ECC with sender interface PurchaseOrderCreatedInformation. and all went to error with no receiver found as there is no config for these in ID. I dont

  • System Copy Information

    hai Can anyone tell about the System Copy ???? Wy we need the System Copy in SAP-BW .... Wt we need to do for this one ??? Please send the note-184754 Please tell me or send any related document to [email protected] I will assing the points kumar

  • How do you export Motion 5 to Compressor 4?

    I can't find a reasonable way to export my Motion 5 output to Compressor 4. Motion 4 would create an Mpeg4 file, but haven't been able to find that capability in Motion 5. Compressor 4 can create the file, but I can't get there from here unless I exp