02-05-2009 7:04 AM
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.
02-05-2009 7:11 AM
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
09-10-2009 4:41 AM