cancel
Showing results for 
Search instead for 
Did you mean: 

Create SC in background mode

Former Member
0 Kudos

Hello,

We are working on SRM 7.02.

My requirement is to create on run time new items in the SC according to Z fields in the header.

I tried to add new items to table ET_ITEMS in BBP_DOC_CHANGE_BADI~BBP_SC_CHANGE without success.

As anyone know how to do it?

<removed by moderator> is it possible?

Regards,

Ronen.

Message was edited by: Thomas Zloch

Accepted Solutions (1)

Accepted Solutions (1)

RicardoRomero_1
Active Contributor
0 Kudos

Hi Ronen,

Yes, you can add new items from BBP_DOC_CHANGE_BADI.

Try filling the following fields:

- Guid: Create a new one using FM BBP_LA_UTILITY_GENERATE_GUID or use a var type i as counter and add 1 for each item you need.

- Parent: Fill it with the header guid

- Number_int: check the last number_int created and add 1.

- Ps_handle_itm: Fill it with the header guid

Maybe you need to add also some lines in tables ET_PARTNER, ET_ACCOUNT, etc.  In that cases fill the field p_guid with the guid of the new item.

Regards,

Ricardo.

Former Member
0 Kudos

Hi Ricardo.

Thank you, its working!

Regards,

Ronen.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Ronen,

Adding fields to Webdynpro UI at run time is possible but its complex coding.( yes it can be done by coding by modifing the Webdynpro View at run time)

I would suggest making use of  Personalization feature in SRM Server SPRO to add all required additional fields at item level.

And then based on the value of header level field, use metadata tables to enable /disable/hide the fields at item level.

Let me know if you need more info.

Regards,

Sushil.

Former Member
0 Kudos

Hello Sushil,

Thank you for your answer.

Let me explain my problem again. My requirement is to create items line(not
fields in items) on run time after the user create the document header.

Regards,

Ronen.