Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Advanced UDF

Hi Experts,

In my scenario. i am sending file which contain multiple header with multiple item lines. in item line. in mapping counter to Assigned to item_number. at every context change at header i need to reset the counter to 10. for this i have to write Adv UFD.

plz can any one provide Logic or UFD.

thanks in Advance,


Former Member

Hi Venu,

when I understand your problem correct you won't have to write a UDF as a standard function exists which should cover your problem: index (within category statistic).


Initial Value: 10

Increment: 10

Count indices in: context

You'll have to ensure that you give the input queue with correct context changes. In your case it should look like that:

item_data (set context to Header_data) --> Standard Function index --> output field in IDoc structure.

Input queue of item_data should look like that your mapping editor:




[Context Change]



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question