cancel
Showing results for 
Search instead for 
Did you mean: 

User-exit /BADI to change mseg during migo

Former Member
0 Kudos

I need to change the amount in local currency in MIGO.

All the exit's and BADI's I tried use that field only as importing, so it's not posible to change it.

Please, could anybody that had this problem before tell me the way you had solved it?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

u can try this simple code.

1. u can access any table or variable from the main program in exits

2. u just have to find the point u need to apply this code.


FIELD-SYMBOLS: <komv>.

ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.

this is just an example... try to do this...it should help u a lot, if not now but in future...

ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.

SAPLMEPO is the main program and TKOMV[]' is the table...

Former Member
0 Kudos

Thank you very much.

I could solve the problem with the last post proposal. The difficult thing was to find the point and the tables to apply it. For those who are interested, I had to change the ammount not only in the MSEG but in the account document (in the ACCCR table in the AC_DOCUMENT_CREATE function).

Thanks again.

Former Member
0 Kudos

Hi Pedro,

How did u solve this problem?

Can u explain in more detailed way

I could not understand Sukriti Saha 's post

Plz explain this process cleary.

Plz send ur reply to narendra.maddipati AT tatatel.co.in

1. u can access any table or variable from the main program in exits

2. u just have to find the point u need to apply this code.

FIELD-SYMBOLS: <komv>.

ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.

this is just an example... try to do this...it should help u a lot, if not now but in future...

ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.

SAPLMEPO is the main program and TKOMV[]' is the table...

Thanks

Narendra

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Check this


BADI ---> MB_DOCUMENT_UPDATE
Method ---->MB_DOCUMENT_UPDATE

Former Member
0 Kudos

The MB_DOCUMENT_UPDATE isn't an option because the MSEG appear as an import parameter (XMSEG) and i can't modify this.

I tryed use BADI MB_MIGO_BADI with the LINE_MODIFY method, but DMBTR field isn't available for update. The fields availables for update process, can be customize, but DMBTR field isn't avaible for customizing for the movemente type 101 . I'm searching for a solution for this.

Thaks.

Former Member
0 Kudos

hi

try from these

MBCF0002 Customer function exit: Segment text in material

doc. item

MBCF0005 Material document item for goods receipt/issue slip

MBCF0006 Customer function for WBS element

MBCF0007 Customer function exit: Updating a reservation

MBCF0009 Filling the storage location field

MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1

MBCF0011 Read from RESB and RKPF for print list in MB26

MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.

Look at last one MB_CF001 it has MSEG under TABLES parameters

Regards

Sachin

Former Member
0 Kudos

These exits does not work because the MSEG is an impor parameter or the process is not triggered.

I'm trying searching BADI process but i'dont see any solution anyway.

Thank for try.

Former Member
0 Kudos

hi,

Search in SCN.

This is allready discussed many times before.

Regards,

Anirban

Former Member
0 Kudos

Yes, and all the times the threads remains without answer.

For example this thread [|]

Thanks.