Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Production Version in Material Master

Former Member
0 Likes
2,422

Hi,

I am having problems with this.

I need to either change date on a production version or

delete the product version.

I have tried using a batch input sequence from my program both for changing the date

and for deleting the production version and this all works well.

Now this isn't good enough since there can be multiple production versions on a material

and I don't know which line to change or delete in the batch run.

Is there a good FM or BAPI to handle this?

I don't want to change the MKAL table directly since there is a history table

connected to this also (MKAL_AEND).

What is the best approach?

Rgds,

/Fredrik.

Hi,

I am having problems with this.

I need to either change date on a production version or

delete the product version.

I have tried using a batch input sequence from my program both for changing the date

and for deleting the production version and this all works well.

Now this isn't good enough since there can be multiple production versions on a material

and I don't know which line to change or delete in the batch run.

Is there a good FM or BAPI to handle this?

I don't want to change the MKAL table directly since there is a history table

connected to this also (MKAL_AEND).

What is the best approach?

Rgds,

/Fredrik.

7 REPLIES 7
Read only

Former Member
0 Likes
1,617

Check this out BAPI_MATERIAL_SAVEDATA.

Read only

0 Likes
1,617

Yes, I have seen this, but it doesn't have any references to the MKAL table.

I want to either update a production version date or delete the record for

the material on the passed production version.

Read only

0 Likes
1,617

try with tcode C223

Read only

0 Likes
1,617

please check the import parameter PLANTDATA which has the field PRODVERSCS (Production Version To Be Costed).

Read only

0 Likes
1,617

How can I use this to achieve what I want to do, either

change the production version date or delete the production version?

I have tried C223, but this is not good enough, nor is batch run in MM02.

I can have multiple production versions and can not pick the correct line

in batch run to change or delete.

Read only

0 Likes
1,617

i think so u can go for a bdc with that tcode

provide plant in the selection conditions

click the extended selection button material no and production version and execute.

Only one entry will come in the list,if its to be deactivated then lock that version ,or else change the date as you require.

I guess this will work.

Read only

0 Likes
1,617

Yes, I think this will work.

I would rather go for a non bdc solution if there were one, but this is workable.