Skip to Content
author's profile photo Former Member
Former Member

Help in Call transaction

Hi all,

Iam using call transaction for RL12.

I have ITAB to process based on reason codes.

for ex if ITAB contains 4 records .

If first record processed unsuccessfully it automatically rejeting the next

3 records if they posts clean also.

Is there any way to do this and the program runs in background only.

  CALL TRANSACTION 'RL12'  USING    bdcdata
                           MODE     w_mode        "N"
                           UPDATE   w_update     "S"
                           MESSAGES INTO ts_mess_tab.

Any help will be appreciated.

Thanks

Sai.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 03:12 PM

    hi Sai,

    Use Session Method( BDC_INSERT FM ) to catch the error records ...

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 03:13 PM

    change the update mode ie w_update to 'A' and check it

    try this and award points if found helpful

        call transaction 'FSP0' using it_bdcdata
                                      mode 'E'
                                      update 'A'
                                      messages into it_msgs.
    
        if not it_msgs[] is initial.
    
          loop at it_msgs.
    
            call function 'FORMAT_MESSAGE'
              exporting
                id        = it_msgs-msgid
                lang      = 'EN'
                no        = it_msgs-msgnr
                v1        = it_msgs-msgv1
                v2        = it_msgs-msgv2
                v3        = it_msgs-msgv3
                v4        = it_msgs-msgv4
              importing
                msg       = v_msg
              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.
            write:/ v_msg.
          endloop.
    

    Message was edited by:

    Rahul Kavuri

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.