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: 

Timesheet_Approval

Former Member
0 Kudos

Hi All,

I created ZBAPI for timesheet approval. In the ZBAPI i am changing the status of record 20 to 30(Approved) and madifying the database table .I am not coded for generating document number(belnr).

So please help what is the code for generating document number. is there any function module for it.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Firstly you need to check whether the change document flag is set for the corresponding data element in the Dictionary for the fields whose changes are to be logged. This is necessary so that the object-specific function modules can identify which field of the defined object should be entered in the change document during logging

Then go to SCDO

- > Create

->Fill the change Doc Object with Name (Z****)

-> save

-> Then you can find the Name in the list below

-> Z****

--> Click on Generate Update Program

--> A dialogu box is display Enter the Function Group Click generate and save you find the Function Module Associated to it.

Then Need to call that function Module trough Report program

Hope this will be help

Thanks

Kalyan.b

Former Member
0 Kudos

It is solved.