No messages return from CALL TRANSACTION ABZON

Hi all,
I'm implementing an BDC program for multiple asset txn posting with tcode ABZON. If there's an error during the posting, I can get the detail system messages. However, nothing was returned from it if posting was successful. The sy-subrc is 0 but the messages internal table contains no line. Appreciate if any experts can tell me what I missed. Hereunder is my ABAP code:
call transaction 'ABZON' using xbdcdata mode p_mode update 'S'  messages into xbdcmsg.
Thanks a lot in advance.
MH.

Hi Navneeth,
Thanks very much!
Would you please give me more information? Like where I can find instruction manuals or SAP note? Thanks again.
Best regards,
MH.

Similar Messages

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

  • Messages from call transaction don't appear

    Hello everyone,
    I'm having a problem that i never experienced.
    I have a call transaction for T-code 'FOB1', like this:
      CALL TRANSACTION f_tcode USING bdc_tab MODE f_mode UPDATE 'S'
                                           MESSAGES INTO messtab.
    I allready tried using 'A' mode and 'N' mode, but the problem persists. My table messtab, that should, at least, bring the message for successfull creation of document, is completely empty!! with one difference. If i choose "visible" mode, a warning appears that is not a concern for creating the document. That 'W' message appears in my table messtab, ONLY if i run the call transaction with 'visible' mode. It looks like if the messages are being deleted so fast that the system doesn't catch them.
    Any suggestions ??
          Thank you.

    Thank you for all your answers, but my problem persists.
    In response to all:
    - I tried eliminating the UPDATE statement or using option 'A', but the message table still appears empty.
    - When i create a document through transaction FOB1, it does send a S message with the number of the document created.
    - I tried creating a Batch Input and process it through SM35, and the log shows several S messages.
    I'm having trouble solving this one. Any more suggestions ?

  • Annoying 40105 errors upon return from called form

    I have 2 forms, A and B. A (the primary form) calls B via CALL_FORM. Sometimes, upon return from B, I get a whole slew of 40105 errors (cannot resolve reference to item), referring to fields in form B - fields that ARE valid in form B, but obviously not in A. Mind you, I am getting these errors when the primary form (A) is displayed. I have double checked that no reference exists in the primary form for these fields.
    I have put both ON-ERROR and ON-MESSAGE triggers at the form level of A to intercept 40105 yet they still get through.
    Any thoughts??
    Thanks.

    I have 2 forms, A and B. A (the primary form) calls B via CALL_FORM. Sometimes, upon return from B, I get a whole slew of 40105 errors (cannot resolve reference to item), referring to fields in form B - fields that ARE valid in form B, but obviously not in A. Mind you, I am getting these errors when the primary form (A) is displayed. I have double checked that no reference exists in the primary form for these fields.
    I have put both ON-ERROR and ON-MESSAGE triggers at the form level of A to intercept 40105 yet they still get through.
    Any thoughts??
    Thanks.

  • How to verify the message id for call transaction ?

    Hi all,
    After calling transaction, I collect the message into a message table msgtab. There is an entry in msgtab with message type (MSGTYP) and message id (MSGID).
    How to know that the message type and message id is correct / relevant to my transaction?

    Hi macy,
    1. How to know that the message type and message id is correct / relevant to my transaction?
      I don't think thats requried,
      bcos,
      these message are ISSUED from the
      TRANSACTION itself.
      The message id, which is used in the transaction,
      (it can be more than one message id used in the transaction)
      , the same is collected in  the table.
    regards,
    amit m.

  • Come back to calling program from Call Transaction

    Hi,
    From my program, i am calling a standard tcode :
                       Call Transaction           - sy-calld is set in called transaction which deactivates some buttons there.
                       Leave To Trnasaction - sy-calld is not set , but then I am not able to come back to the calling program.
    Please tell me how should this be achieved.
    Thanks

    Hi, shalaxy s
    If you do mean calling the transaction and being able to go back !!
    You can use the following
    For Example :  CALL TRANSACTION 'SE80' VIA SELECTION-SCREEN AND RETURN.
    OR:  CALL TRANSACTION 'SE80' AND SKIP FIRST SCREEN.
    Best Reagrds, AlMaReD 
    Edited by: AlMaReD on Jun 12, 2010 9:47 AM

  • Iphone message 'return to call' at the top of the screen won't go away

    I was on the phone when I received a text message and the iphone had the green strip at the top that said 'touch to return to call' so I touched it and it returned to the call but now the green strip with the message won't go away. Any suggestions? Do I have to go on itunes and return the iphone to factory settings? Will I lose all of my data if I do? Any help would be greatly appreciated!

    Basics from the manual are:
    Restart.
    Reset.
    Restore.
    Have you tried these?
    http://support.apple.com/manuals/iphone/

  • How to suppress a warning message in BDC call transaction

    Hi,
    I was calling a BDC using CALL Transaction in mode N. But due to some warning messages the background job was not success. Please tell me how to overcome the warning messages in BDC.
    Regards,
    Satish

    Hi tyr this way:
    PERFORM bdc_dynpro      USING 'SAPMM07M' '0210'.  " into the screen
          PERFORM bdc_field       USING 'BDC_CURSOR'           "cursor on the filed to update
                                        'DM07M-HSDAT_INPUT'.
          PERFORM bdc_field       USING 'DM07M-HSDAT_INPUT'   "assign values
                                         v_date.                                     "might get an warning so three enters...
          PERFORM bdc_field       USING 'BDC_OKCODE'  " first enter
                                       '/00'.
          PERFORM bdc_field       USING 'BDC_OKCODE'  "second enter
                                        '/00'.
          PERFORM bdc_field       USING 'BDC_OKCODE'  "third enter
                                        '/00'.

  • How to Return From Call to Stored Procedure

    I created an SQL Query Report portlet which contains a Delete
    link next to each record. If the user clicks on the link, it
    calls a JavaScript function which confirms the Delete and then
    calls a stored procedure which deletes the record. After the
    record is deleted, I get a page with,
    "No data returned from stored procedure
    The PL/SQL gateway invoked a stored procedure as part of
    processing the URL but the procedure returned no data."
    How can I get rid of this page and just return to the page that
    contains my report portlet after the stored procedure executes?
    Fran

    Hi Michael,
    I tried the following at the end of my procedure, but I still
    got the error page instead of the page containing the report
    portlet:
    --- return to calling page
    owa_util.redirect_url('http://pmim1a:7778/servlet/page?
    pageid=55&dad=portal30&_schema=PORTAL30');
    Fran

  • Trigger fire when return from called form

    Witch triggers fire when returning from a called form in my master form?

    There is no trigger that fires in such events for calling form.
    It depends on your requirement.You can use WHEN-BUTTON-PRESSED trigger.
    DECLARE
    search_list paramlist;
    where_string varchar2(100);
    BEGIN
         search_list:=get_parameter_list('search_paramlist');
         IF NOT id_null(search_list) then
                   destroy_parameter_list(search_list);
         END IF;
         search_list:=create_parameter_list('search_paramlist');
         add_parameter(search_list,'P_SEARCH_SQL',text_parameter,'');
         call_form('E:\subhas\Oracle Tools\Oracle Form\Subhas_form\SEARCH.fmx',no_hide,no_replace,query_only,search_list);
    END;
    Subhas

  • Drill down to all screens of XK03 in ALV report from CALL TRANSACTION

    HI!
    I have created a vendor master report which calls the XK03 transaction when the vendor is clicked on on the ALV output. It takes me to the XK03 address screen and when I try clicking to go to the next screen it says the last screen is reached , 'Do you wnat to cancell processing'. I want to enable the program to goto the next screens as well like the controll screen and the accounting screen ect in my drill down on call transaction.
    following si my code section which does it.
    CASE rs_selfield-fieldname.
            WHEN 'LIFNR'.
    *       Set parameter ID for transaction screen field
              CHECK NOT wa_vend-lifnr IS INITIAL.
              SET PARAMETER ID 'LIF' FIELD wa_vend-lifnr.
              SET PARAMETER ID 'BUK' FIELD wa_vend-bukrs.
              SET PARAMETER ID 'EKO' FIELD wa_vend-ekorg.
              SET PARAMETER ID 'KDY' FIELD kdy_val.
              CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN. "EC needed
    ENDCASE.
      ENDCASE.
    Thanks and regards,
    Aarav

    Hi,
    Your code seems to be right.
    Try writing the code as the below format.
    CASE SY-UCOMM.
    * CHECK FUNCTION CODE
    WHEN '&IC1'.
    * CHECK FIELD CLICKED ON WITHIN ALVGRID REPORT
    IF SELFIELD-FIELDNAME = 'LIFNR'.
    * READ DATA TABLE, USING INDEX ROW USER CLICKED ON
    READ TABLE IT_FINAL INTO WA_FINAL INDEX SELFIELD-TABINDEX.
    * SET PARAMETER ID FOR TRANSACTION SCREEN FIELD
    SET PARAMETER ID 'BES' FIELD WA_FINAL-LIFNR.
    * EXECUTE TRANSACTION 'XK03',AND SKIP INITIAL DATA ENTRY SCREEN.
    CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN.
    ENDIF.
    ENDCASE.
    Thanks
    Arbind

  • Tree node selection lost after returning from called page

    Hi
    in a default unbound task flow i have a Page1 calling Page2.
    Page1 displays a master-detail data using treetable component, while Page2 displays detail data (selected from Page1) as a read-only form.
    When coming back from Page2, Page1 tree node selection is lost and tree table is rendered as if was called for a first time (detail data are disclosed).
    How can I restore an original selection?
    (Jdev 11.1.2.2)
    Many thanx

    1. before goind to the Page 2, remember somewhere the selected row keys, as follows:
        RowKeySet rks = yourTreeTable.getSelectedRowKeys();2. after returning to the page 1, do as follows:
        Iterator rksIterator = rks.iterator();
        if (rksIterator.hasNext()) {
                 List key = (List)rksIterator.next();
                 JUCtrlHierBinding treeTableBinding = null;
                 treeTableBinding =
                         (JUCtrlHierBinding)((CollectionModel)table.getValue()).getWrappedData();
                 JUCtrlHierNodeBinding node =
                     treeTableBinding.findNodeByKeyPath(key);
                 RowKeySet newRks = new RowKeySetImpl();
                 if (node != null)
                     newRks.add(node.getKeyPath());
                 callSelectionListener(yourTreeTable, newRks);
                // refresh your tree table  - ommited here
         // where is:
         protected void callSelectionListener(RichTreeTable table, RowKeySet discRows) {
             SelectionEvent selEv =
                 new SelectionEvent(table, new RowKeySetImpl(), discRows);
             JSFUtils.resloveMethodExpression("bindings.YourVO.treeModel.makeCurrent", // <--  of course, adjust this value to the your selectionListener expression
                                              null,
                                              new Class[] { SelectionEvent.class },
                                              new Object[] { selEv });
         } // of makeCurrent()
        public  Object resloveMethodExpression(String expression, Class returnType, Class[] argTypes, Object[] argValues) {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            MethodExpression methodExpression = elFactory.createMethodExpression(elContext, expression, returnType, argTypes);
            return methodExpression.invoke(elContext, argValues);
        }

  • When we go for lsmw apart from call transaction and session method in bdc?

    Hi Experts,

    Hi,
    Mostly LSMW is used where small data migartion is needed, wwhere as BDC for huge data migration.
    LSMW is sometimes used by functional consulatants as they dont have any programming knowledge .
    Revert back if any issues.
    Reward with points if helpful.
    Regards,
    Naveen

  • CALL Transaction 'MIRO' return error messages in MESSTAB

    Dear All,
    We have created a test function module to call transaction 'MIRO', the function works fine on one server but the same give error messages on other server.
    The messages returned by call transaction is as follows
    ======================================================
    Messages retunrned by 'CALL Transaction MIRO' as on server I (success)
    ======================================================
    1 MIRO SAPLMR1M 6000 I E F5 096 1,002,010.00 INR Advance to Vendors CTU
    2 MIRO SAPLMR1M 6000 S E F5A 034 BusA CTU
    3 MIRO SAPLMR1M 6000 S E M8 060 5200000423 CTU
    ======================================================
    Messages retunrned by 'CALL Transaction MIRO' as on server II (error)
    ======================================================
    1 MIRO SAPLMR1M 6000 S E F5 480 RE Doc. Header Text CTU
    2 MIRO SAPLMR1M 6000 I E M8 584 CTU
    3 MIRO SAPLMR1M 6000 S E F5 480 RE Doc. Header Text CTU
    4 MIRO SAPLMR1M 6000 S E 7Q 333 1008473 CTU
    5 MIRO SAPLMR1M 6000 E E F5 480 RE Doc. Header Text CTU
    In fact, when the MIRO screen is displayed to user and user enter the data in MIRO and simulate, there is no error.
    But when we post the transaction the screen is exited without displaying the invoice document number.
    Where as if we call MIRO directly, it works fine without any error.
    Kindly help.
    Regards
    Ruhi Hira

    The sample code is
    FUNCTION Z_TEST_MIRO.
    ""Local Interface:
    *"  EXPORTING
    *"     REFERENCE(ERRCODE) TYPE  N
    *"     REFERENCE(INVOICENUMBER) TYPE  C
    *"     REFERENCE(OLDINVOICENUMBER) TYPE  C
        DATA: BEGIN OF tran_opts,
            dismode   TYPE ctu_params-dismode VALUE 'A',
            updmode   TYPE ctu_params-updmode VALUE 'S',
            cattmode  TYPE ctu_params-cattmode,
            defsize   TYPE ctu_params-defsize ,
            racommit  TYPE ctu_params-racommit,
            nobinpt   TYPE ctu_params-nobinpt VALUE 'X',
            nobiend   TYPE ctu_params-nobiend,
        END OF tran_opts.
        DATA: BEGIN OF MESSTAB OCCURS 10.
            INCLUDE STRUCTURE BDCMSGCOLL.
        DATA: END OF MESSTAB.
        ERRCODE = 0.
        GET PARAMETER ID 'RBN' FIELD OldInvoiceNumber.
        DATA BEGIN OF BDCDATA OCCURS 1.
            INCLUDE STRUCTURE BDCDATA.
        DATA END OF BDCDATA.
        CALL TRANSACTION 'MIRO' USING BDCDATA OPTIONS FROM tran_opts MESSAGES INTO MESSTAB.
        LOOP AT MESSTAB.
            WRITE: / MESSTAB-TCODE,
            MESSTAB-DYNAME,
            MESSTAB-DYNUMB,
            MESSTAB-MSGTYP,
            MESSTAB-MSGSPRA,
            MESSTAB-MSGID,
            MESSTAB-MSGNR,
            MESSTAB-msgv1,
            MESSTAB-msgv2,
            MESSTAB-msgv3,
            MESSTAB-msgv4.
            IF MESSTAB-MSGTYP = 'S' AND MESSTAB-msgid = 'M8' AND MESSTAB-msgnr = '060'.
                invoicenumber = messtab-msgv1.
            ENDIF.
        ENDLOOP.
        IF OldInvoiceNumber = InvoiceNumber OR InvoiceNumber IS INITIAL.
            ERRCODE = 1.
        ELSE.
            ERRCODE = 0.
        ENDIF.
        REFRESH BDCDATA.
    ENDFUNCTION.

  • Hi guys please give me sample code for call transaction that handles error

    hi guys, please give me sample code for call transaction that handles error,
    please send me the sample code in which there should be all decleration part and everything, based on the sample code i will develop my code.
    please do help me as it is urgent.
    thanks and regards.
    prasadnn.

    Hi Prasad,
    Check this code.
    Source Code for BDC using Call Transaction
    *Code used to create BDC
    *& Report  ZBDC_EXAMPLE                                                *
    *& Example BDC program, which updates net price of item 00010 of a     *
    *& particular Purchase order(EBELN).                                   *
    REPORT  ZBDC_EXAMPLE  NO STANDARD PAGE HEADING
                          LINE-SIZE 132.
    Data declaration
    TABLES: ekko, ekpo.
    TYPES: BEGIN OF t_ekko,
        ebeln TYPE ekko-ebeln,
        waers TYPE ekko-waers,
        netpr TYPE ekpo-netpr,
        err_msg(73) TYPE c,
    END OF t_ekko.
    DATA: it_ekko  TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko  TYPE t_ekko,
          it_error TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_error TYPE t_ekko,
          it_success TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_success TYPE t_ekko.
    DATA: w_textout            LIKE t100-text.
    DATA: gd_update TYPE i,
          gd_lines TYPE i.
    *Used to store BDC data
    DATA: BEGIN OF bdc_tab OCCURS 0.
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.
    *Used to stores error information from CALL TRANSACTION Function Module
    DATA: BEGIN OF messtab OCCURS 0.
            INCLUDE STRUCTURE bdcmsgcoll.
    DATA: END OF messtab.
    *Screen declaration
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
                                        TITLE text-001. "Purchase order Num
    SELECT-OPTIONS: so_ebeln FOR ekko-ebeln OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME
                                        TITLE text-002. "New NETPR value
    PARAMETERS:  p_newpr(14)   TYPE c obligatory.  "LIKE ekpo-netpr.
    SELECTION-SCREEN END OF BLOCK block2.
    *START-OF-SELECTION
    START-OF-SELECTION.
    Retrieve data from Purchase order table(EKKO)
      SELECT ekkoebeln ekkowaers ekpo~netpr
        INTO TABLE it_ekko
        FROM ekko AS ekko INNER JOIN ekpo AS ekpo
          ON ekpoebeln EQ ekkoebeln
       WHERE ekko~ebeln IN so_ebeln AND
             ekpo~ebelp EQ '10'.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Check data has been retrieved ready for processing
      DESCRIBE TABLE it_ekko LINES gd_lines.
      IF gd_lines LE 0.
      Display message if no data has been retrieved
        MESSAGE i003(zp) WITH 'No Records Found'(001).
        LEAVE TO SCREEN 0.
      ELSE.
      Update Customer master data (instalment text)
        LOOP AT it_ekko INTO wa_ekko.
          PERFORM bdc_update.
        ENDLOOP.
      Display message confirming number of records updated
        IF gd_update GT 1.
          MESSAGE i003(zp) WITH gd_update 'Records updated'(002).
        ELSE.
          MESSAGE i003(zp) WITH gd_update 'Record updated'(003).
        ENDIF.
    Display Success Report
      Check Success table
        DESCRIBE TABLE it_success LINES gd_lines.
        IF gd_lines GT 0.
        Display result report column headings
          PERFORM display_column_headings.
        Display result report
          PERFORM display_report.
        ENDIF.
    Display Error Report
      Check errors table
        DESCRIBE TABLE it_error LINES gd_lines.
      If errors exist then display errors report
        IF gd_lines GT 0.
        Display errors report
          PERFORM display_error_headings.
          PERFORM display_error_report.
        ENDIF.
      ENDIF.
    *&      Form  DISPLAY_COLUMN_HEADINGS
          Display column headings
    FORM display_column_headings.
      WRITE:2 ' Success Report '(014) COLOR COL_POSITIVE.
      SKIP.
      WRITE:2 'The following records updated successfully:'(013).
      WRITE:/ sy-uline(42).
      FORMAT COLOR COL_HEADING.
      WRITE:/      sy-vline,
              (10) 'Purchase Order'(004), sy-vline,
              (11) 'Old Netpr'(005), sy-vline,
              (11) 'New Netpr'(006), sy-vline.
      WRITE:/ sy-uline(42).
    ENDFORM.                    " DISPLAY_COLUMN_HEADINGS
    *&      Form  BDC_UPDATE
          Populate BDC table and call transaction ME22
    FORM bdc_update.
      PERFORM dynpro USING:
          'X'   'SAPMM06E'        '0105',
          ' '   'BDC_CURSOR'      'RM06E-BSTNR',
          ' '   'RM06E-BSTNR'     wa_ekko-ebeln,
          ' '   'BDC_OKCODE'      '/00',                      "OK code
          'X'   'SAPMM06E'        '0120',
          ' '   'BDC_CURSOR'      'EKPO-NETPR(01)',
          ' '   'EKPO-NETPR(01)'  p_newpr,
          ' '   'BDC_OKCODE'      '=BU'.                      "OK code
    Call transaction to update customer instalment text
      CALL TRANSACTION 'ME22' USING bdc_tab MODE 'N' UPDATE 'S'
             MESSAGES INTO messtab.
    Check if update was succesful
      IF sy-subrc EQ 0.
        ADD 1 TO gd_update.
        APPEND wa_ekko TO it_success.
      ELSE.
      Retrieve error messages displayed during BDC update
        LOOP AT messtab WHERE msgtyp = 'E'.
        Builds actual message based on info returned from Call transaction
          CALL FUNCTION 'MESSAGE_TEXT_BUILD'
               EXPORTING
                    msgid               = messtab-msgid
                    msgnr               = messtab-msgnr
                    msgv1               = messtab-msgv1
                    msgv2               = messtab-msgv2
                    msgv3               = messtab-msgv3
                    msgv4               = messtab-msgv4
               IMPORTING
                    message_text_output = w_textout.
        ENDLOOP.
      Build error table ready for output
        wa_error = wa_ekko.
        wa_error-err_msg = w_textout.
        APPEND wa_error TO it_error.
        CLEAR: wa_error.
      ENDIF.
    Clear bdc date table
      CLEAR: bdc_tab.
      REFRESH: bdc_tab.
    ENDFORM.                    " BDC_UPDATE
          FORM DYNPRO                                                   *
          stores values to bdc table                                    *
    -->  DYNBEGIN                                                      *
    -->  NAME                                                          *
    -->  VALUE                                                         *
    FORM dynpro USING    dynbegin name value.
      IF dynbegin = 'X'.
        CLEAR bdc_tab.
        MOVE:  name TO bdc_tab-program,
               value TO bdc_tab-dynpro,
               'X'  TO bdc_tab-dynbegin.
        APPEND bdc_tab.
      ELSE.
        CLEAR bdc_tab.
        MOVE:  name TO bdc_tab-fnam,
               value TO bdc_tab-fval.
        APPEND bdc_tab.
      ENDIF.
    ENDFORM.                               " DYNPRO
    *&      Form  DISPLAY_REPORT
          Display Report
    FORM display_report.
      FORMAT COLOR COL_NORMAL.
    Loop at data table
      LOOP AT it_success INTO wa_success.
        WRITE:/      sy-vline,
                (10) wa_success-ebeln, sy-vline,
                (11) wa_success-netpr CURRENCY wa_success-waers, sy-vline,
                (11) p_newpr, sy-vline.
        CLEAR: wa_success.
      ENDLOOP.
      WRITE:/ sy-uline(42).
      REFRESH: it_success.
      FORMAT COLOR COL_BACKGROUND.
    ENDFORM.                    " DISPLAY_REPORT
    *&      Form  DISPLAY_ERROR_REPORT
          Display error report data
    FORM display_error_report.
      LOOP AT it_error INTO wa_error.
        WRITE:/      sy-vline,
                (10) wa_error-ebeln, sy-vline,
                (11) wa_error-netpr CURRENCY wa_error-waers, sy-vline,
                (73) wa_error-err_msg, sy-vline.
      ENDLOOP.
      WRITE:/ sy-uline(104).
      REFRESH: it_error.
    ENDFORM.                    " DISPLAY_ERROR_REPORT
    *&      Form  DISPLAY_ERROR_HEADINGS
          Display error report headings
    FORM display_error_headings.
      SKIP.
      WRITE:2 ' Error Report '(007) COLOR COL_NEGATIVE.
      SKIP.
      WRITE:2 'The following records failed during update:'(008).
      WRITE:/ sy-uline(104).
      FORMAT COLOR COL_HEADING.
      WRITE:/      sy-vline,
              (10) 'Purchase Order'(009), sy-vline,
              (11) 'Netpr'(010), sy-vline,
              (73) 'Error Message'(012), sy-vline.
      WRITE:/ sy-uline(104).
      FORMAT COLOR COL_NORMAL.
    ENDFORM.                    " DISPLAY_ERROR_HEADINGS
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

Maybe you are looking for

  • Not able to stop movie...

    I have a movie created in Captivate, and exported to Flash 8, within the Flash 8 movie I added custom control buttons. But the stop() command is not working, the movie continues playing even though I have tried and confirmed various targetPaths, and

  • Need access to Java SE 6 for  use in CS4 in OS 10.8.5. (PS won't start without it)

    Where can I reliably access Java SE 6 for  use in CS4 in OS 10.8.5.   Right now PS won't open without it ( I get a warning message saying to install Java SE 6 runtime.  When I hit install, the result is no fle found. Adobe has a dead download for rel

  • IPhone connectivity issues with D-Link DIR-615 router

    Hello everyone, I was using video streaming with DIR-615 (firmware 3.11.NA) without any trouble earlier. After upgrading iPhone to iOS v7.0.4 (firmware 04.12.09), I am having trouble with my wifi on iPhone. After playing the video for a minute or two

  • Customizing OI to add step progress bar

    Hello custom RTOI experts!  I am attempting to make a customization to the full-featured LabVIEW RTOI (for TestStand 3.0) in order to provide the seemingly simple feature of a step completion progress bar on the execution page of the tab control.  Le

  • X300 - how's the LED screen?

    I've seen a bunch of comments and reviews of the X300. But I've seen little to no comments about the new screen technology. If I'm not mistaken, the X300 is backlit with LEDs rather thn the standard TFT( backlit with flourescencent light). For those