cancel
Showing results for 
Search instead for 
Did you mean: 

MD11 -> RESB table

former_member384574
Active Participant
0 Kudos

Good morning Experts,

I'm having a strange requirement that I can find the good solution to solve it.

We have 5 customer fields created on table RESB and STPO. What we need is: when a planned order is converted to a production order all these customer fields needs to be filled with the values of STPO table.

I've seen that the entry on RESB is created when the planned order is created using MD11 transaction, but I can't find the correct place where I can change this information and enhance with the customer fields....

I've tried on resb_transfer (LCOSDF2W) and RESB_POST (LCOVBF10) without success....

Do you know if there's any user exit / badi on MD11 or similiar where I can change the values of RESB table?

Thanks in advance for all your support.

Best regards,

Rebeca

Accepted Solutions (1)

Accepted Solutions (1)

former_member384574
Active Participant

Hello Everybody!


Thank you so much for your support and your comments. Finally we have enhance the FM

CO_DB_RESB_ARRAY_SELECT and with this modification everything is working again.

Thanks a lot.

Best regards,


Rebeca

Answers (1)

Answers (1)

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

I don't think any BAdi can support this requirement.

Why you want the customer fields in reversion RESB? What is the business requirement?

Are you creating manual planned orders?

Also note reservation are created when you save the production order in that case you can try the BAdi WORKORDER_UPDATE

Best Regards,

R.Brahmankar

former_member384574
Active Participant
0 Kudos

The requierement is, that when a planned order is converted to production order the fields for RESB needs to be populated using table STPO. Both table contains the customer fields.

One question, when I create a planned order using MD11 the table RESB is created with RSNUM.... why do you say that the reservation is done when the production order is saved?

Thanks for your answer

Best regards,

Rebeca

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

Again what is purpose to have custom field in RESB?

When you create planned order system generate the dependent reservation for the components and when you convert the planned order to production order  system generate reservation against the order for 261 movement.

Best Regards,

R.Brahmankar

former_member384574
Active Participant
0 Kudos

Thank you so much for your big support.

The purpose of this change was to enhance the production order with the fields of BOM positions. In STPO table we have the same Append structure as we have on RESB. So the idea is, when the production order is created or if the RESB is filled by CO01/Co02, the customer fields of BOM postiions have to be written in the production order or RESB. We do not have further information about the change, but the idea, I think, is to copy the information from STPO table to RESB and, when the production order is created, and any new component is created, the information of this component (and the fields) needs to be displayed on the components screen of a production order. (CO02 -> Components -> double click in one component -> Tab General data -> At the end, we have the information about the customer fields.

So, MD04 -> planned order to production order -> Check this tab General data -> The fields are not displayed/saved.

Do you understand more or less the problem?

So, if the movement 261 is created when the production order is converted, maybe is better to check these fields on the creation of a production order?

THANKS A LOT for your support.

Regards,

Rebeca

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

Please note when you create  production order  manually or by converting system read the master data again it will explode the BOM (STPO)  and Routing (PLKO).

As per my first suggestion you may explore the BAdi  WORKORDER_UPDATE or Enhancement like   PPCO0008 to update the custom field in RESB table  with your own custom logic for sure you have to enhance the production order component screen too.

You may refer this discussion,

All the best.

Best Regards,

R.Brahmankar

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

See this blog for details about the exits available:

BR
Caetano