Application Development 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: 

BAPI/FM to populate custom fields in Assigned objects in QM02 transaction

Former Member
0 Kudos

Hi All,

I have a requirement to update the custom fields like Object category, Sales document and item in the

Items->Assigned objects tab of QM02 transaction. I have been unable to locate a BAPI/FM to do the same.

Requesting anybody who has worked on such a requirement to come up with any details.

Regards,

Madhavi

7 REPLIES 7

Former Member
0 Kudos

Hi Madhavi,

Can you provide screen shot of 'QM02' pointing what is your requirement , also which BAPI you used  ?

Regard's

Smruti

0 Kudos

Hi Smruti,

Please see the below screen shots.

The object category is selected as ‘Sales order’. This category has been added by

implementing the BADI ‘BADI_QNAO_OBJCAT’.

Once the object category is selected the relevant custom fields ‘Sales Doc’ and ‘Item’ appear as highlighted below. These fields are also added through the BADI ‘BADI_QNAO_OBJCAT’. I need a BAPI to populate the 'Object category',  ‘Sales Doc’ and ‘Item’ fields.

I have not yet been able to locate an appropriate BAPI to update these.

Regards,

Madhavi

Former Member
0 Kudos

one option is to enhance standard BAPI to achieve this.

former_member214131
Active Contributor
0 Kudos

Hi, If this is a one time update; you can go for a small LSMW recording to the update the required fields to close this task.

Hope this helps.

Best Regards, Murugesh

Former Member
0 Kudos

Hi Madhavi,

    Can you share document how did you achieve adding object catagory with custom fields. My requirement is add new object catagory for DB batch validation and qty. field.

   i created new object catagory, copy of 001 and it's giving error Object Batch/DB  does not exist.

Thanks,

Yugi

0 Kudos

Hello Yugi, Madhavi,

I have similar requirement to achieve, where in I have to display some additional fields on the Assigned object screen and populate then based on Object Category (Batch) and Object value Selection.

I have implemented BADI BADI_QNAO_OBJCAT and enhanced standard structure QNAOS_OBJ_DATA_UI and standard table QNAO_AOBJECT.

But when I select my Object category in Assigned object screen, the additional fields are not being displayed. If either of you have achieved this functionality, Please you can provide some information on the same. It will be very helpfull to me.

Any other pointers are highly welcomed.

Thanks,

Maninder SA

0 Kudos

Resolved myself, thanks.