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

how to get position ID created in BDC using Transaction PO13?

Hi Experts,

I am using batch input program to create position using Transaction PO13, here the position ID is generated internally by system using number range object RP_PLAN. Now I want to use the positon ID after calling the BDC, how can I get it?

Thanks a lot!

Best Regards,

Shaoming

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 26, 2009 at 10:30 AM

    Hi

    For the success records after CALL TRANSACTION get the position Id by using GET PARAMETER ID 'PON' FIELD wa_final-seark.

    Internally once after generation of Position ID it ill set the Parameter ID in PON

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I hope this is only one way i know and i did in may project, and your concern is to if anyone is creating the Position when bdc is running at that time it will not cause any problem bez set & Get parameter Id`s will not have any impact as they running in different session.

      I hope you understand !!

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2009 at 10:36 AM

    Hi,

    Declare an internal table of the type BDCMSGCOLL and then while calling the transaction pass the messages into that internal table you should get the position id created captured in the internal table.

    data: it_msgcoll like bdcmsgcoll occurs o with header line.
    ...
    ...
    call transaction 'PO13' mode 'N'...messages in it_bdcmsgcoll.
    

    Regards,

    Himanshu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2009 at 10:36 AM

    Hi ,

    After the BDC you will get in messtab sucess message position created .there you will get the number .

    Read the messtab with mstyp = 'S and msg number and msg id .

    then you can use the postion id .

    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.