Skip to Content

I would like to get the Position No of Component of Production order at Mb1a

Hi,

I need a small information , I all ready tried a lot but i am not able to get the solution.

I am posting Production order a CO01 . In production It is having Some components

Please have a look on below attached images. 10 and 20 i am having components.

Now i am issuing the Materials At MB1a with 261 movement. While issuing the materials against to Order.

I would like to compare the RESB table I need do some calculation.

I am using badiname: AC_DOCUMENT

Method Name::IF_EX_AC_DOCUMENT~CHANGE_INITIAL


My problem is While issuing I may issue second component first .

In this case i would like to get the POSNR from CO03 but it is always getting the POSNO as 1

If i issue two it is showing 001 and 002 which means POSNO is showing Not from the Production Order data.

Sequence no is generating like 001 and 002 and 003 and 004 how many components are issuing it is increasing the number.

How can i get the POSNR OF Order components.


Any information plz update me.

DATA : IT_RESB TYPE STANDARD TABLE OF RESB,

W_RESB TYPE RESB.

DATA : TEMP1 TYPE STRING,

TEMP2 TYPE STRING,

TEMP3 TYPE STRING,

TEMP4 TYPE STRING,

TEMP(10) TYPE C.

DATA: EX_ITEM TYPE ACCIT,

WA_EX_ITEM TYPE ACCIT_SUB,

W_KONZS TYPE LFA1-KONZS,

W_LIFNR TYPE LFA1-LIFNR.

LOOP AT IM_DOCUMENT-ITEM INTO EX_ITEM.

IF EX_ITEM-BWART EQ '261'.

IF EX_ITEM-AUFNR IS NOT INITIAL.

REFRESH IT_RESB[].

'''' i am writing my logic here.

endif.

endloop.




Mb1aor3.png (106.0 kB)
Mb1aor2.png (96.9 kB)
MB1A-ORI.PNG (49.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 21, 2015 at 12:03 PM

    Hi,

    If u want to check the document before posting you can use user exit MBCF0002.

    Arivazhagan S

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 22, 2015 at 05:08 AM

    Hi,

    Any information Plz,

    Can i get the position number in above badi , while issuing the material.

    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.