on 11-02-2010 5:51 PM
Good afternoon, Experts
Documentation for BADI /SAPAPO/PWB_TPSRC_IN says that its supposed allow you to manipulate External Procurement Relationships being created from CIF'd Scheduling Agreements.
I'm trying to use method PUR_TPSRC_IN_EXIT to default the Release Creation Profile (abueb) for ALL external procurement relationships (See code below)
DATA ls_row TYPE /SAPAPO/TPSRC_STR.
LOOP AT CT_TPSRC INTO ls_row.
ls_row-abueb = 'Z001'.
MODIFY TABLE CT_TPSRC FROM ls_row.
ENDLOOP.
Problem is that the MODIFY statement above is returning a 4 anytime I try to change any value in ls_row.
Has anybody successfully been able to do anything with this BADI???
Any help would be greatly appreciated!!!
Thanks,
Chad
Chad - try adding an index to your MODIFY statement.
Example: MODIFY TABLE CT_TPSRC FROM ls_row INDEX sy-tabix.
Another way to achieve this is to do the entire table in one statement:
ls_row-abueb = 'Z001'.
MODIFY CT_TPSRC[] FROM ls_row TRANSPORTING abueb WHERE mandt = sy-mandt.
Once you get past the ABAP then you can see the BADI working.
Regards
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Andy!!!
Including INDEX was all it took.
Much appreciated!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.