08-21-2015 12:52 PM
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.
08-21-2015 1:03 PM
Hi,
If u want to check the document before posting you can use user exit MBCF0002.
Arivazhagan S
08-21-2015 1:03 PM
Hi,
If u want to check the document before posting you can use user exit MBCF0002.
Arivazhagan S
08-21-2015 1:19 PM
Ok Thanks for your reply.
But above Method is all ready implemented, All ready in production.
But not working. In Some scenarios Not working Properly.
Only working components if i take in sequence manner it is working..
08-22-2015 1:57 PM
hi,
thanks for your reply.
I don't have any options to get the position number from the badi,
So, i move the code from badi to user exit.
08-22-2015 6:08 AM
Hi,
Any information Plz,
Can i get the position number in above badi , while issuing the material.