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

Function module which work as BDC

Hi All

Is there any function module which works as BDC. What i expect is that, i will pass the data to be uploaded, the transaction code, update mode..etc to that function module which execute the transaction accordindly.

Thanks

ravi

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2005 at 08:45 PM

    No - there are however, specific programs (RFBIBL00 for one) which will take data in a specific format and run a specific transaction.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2005 at 10:29 PM

    You might want to check out the following function module. It is pretty close to what you are looking for

    You pass it the tcode, mode, update val, bdcdata, and you will get the messtab back.

    
      call function 'ABAP4_CALL_TRANSACTION'
                   exporting
                     tcode                         = 'VA11'
                     mode_val                      = mode
                     update_val                    = 'S'
                   tables
                     using_tab                     = bdcdata
                     mess_tab                      = messtab
                   exceptions
                     call_transaction_denied       = 1
                     tcode_invalid                 = 2
                     others                        = 3.
    
    
    
    

    Please remember to award points for helpful answers and mark your post as solved when you question has been answered. Thanks.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2005 at 11:04 PM

    Even though there may not be any single function module to do what you are asking for, don't the batch input function modules and the program serve your purpose? Create a batch input session, insert your BDC data into it and close the session using the function modules BDC_OPEN_GROUP,BDC_INSERT and BDC_CLOSE_GROUP and then use RSBDCSUB to execute the session. If you want, you can create one function module of your own, that takes your inputs, and does the calls to above function modules and submits the program.

    Srinivas

    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.