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

Process 2 BDCs in 1 program problem

Hi,

I created a program that submits the BDC session 2 times to process the creation and the change of a transaction code. I can't seem to make it to work in terms of processing the first BDC and then the second BDC automatically. There is a timing issue. Has anyone done this without problems.

Thanks

Will

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 Dec 29, 2006 at 06:11 AM

    try to have to use of BAPIs in place of BDC.

    1.Bcos , in the program itself u wll come to know what u created, but in BDC u dont have any data to process second BDC for change.

    2.U can skip Error transactions in program itself.

    Regards

    prabhu

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Eswar,

      An update on this. Thanks so much for doing the analysis and recommendations. I was able to solve the problem by correcting my probgram according to Rich's suggestions:

      1. Exclude the use of the INCLUDE BDCRECX1.

      2. I no longer use statements PERFORM OPEN_GROUP, PERFORM CLOSE_GROUP, SUBMIT RSBDCSUB using the code from the INCLUDE BDCRECX1

      3. I am now using the following PERFORMs:

      FORM BDC_DYNPRO USING PROGRAM DYNPRO.

      CLEAR BDCDATA.

      BDCDATA-PROGRAM = PROGRAM.

      BDCDATA-DYNPRO = DYNPRO.

      BDCDATA-DYNBEGIN = 'X'.

      APPEND BDCDATA.

      ENDFORM. " BDC_DYNPRO

      FORM BDC_FIELD USING FNAM FVAL.

      CLEAR BDCDATA.

      BDCDATA-FNAM = FNAM.

      BDCDATA-FVAL = FVAL.

      APPEND BDCDATA.

      ENDFORM. " BDC_FIELD

      4. I now also use the statements:

      CLEAR BDCDATA.

      REFRESH BDCDATA.

      5. I am calling the transaciton directly and not going through the BDC sessions

      CALL TRANSACTION 'GS01' USING BDCDATA

      MODE 'N'

      UPDATE 'L'.

      6. I now have 1 program to do 2 updates to transactions GS01 and GS04.

      7. The update to my Z table works

      8. The only thing I would recommend is to use the BDC session method initially to create and test your program until it works. The BDC helps in doing error analysis for the screen updates.

      9. Once you have the program working then you can exlcude using the BDC session method.

      Thanks and regards

  • Posted on Dec 29, 2006 at 06:19 AM

    Hi,

    Did you tried using WAIT UP TO n SECONDS ?

    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.