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

Scheduling Agreement Create BAPI

former_member674971
Discoverer
0 Likes
633

I am using BAPI_SAG_CREATE to create scheduling agreement in S/4. Even if i give an item number as 00001 , 00002 etc it takes the number as 10 and created the document. I need the item number to be '2'. (just one item created but the item no is 2)

How can i do that, how can i assign my own item nos?

thanks in advance.

1 REPLY 1
Read only

MateuszAdamus
Active Contributor
0 Likes
541

Hi bhakti64

In your document's header definition please put the Item Interval value as 1.

DATA:
  ls_head   TYPE bapimeoutheader,
  ls_headx  TYPE bapimeoutheaderx,


ls_head-item_intvl = 1.
ls_headx-item_intvl = 'X'.

Hope this helps.

regards,

Mateusz