API/FM to Add original to Existing DIR & Check in
I am looking for an API/FM to add an original to an existing DIR .
I am actually getting the file data in "binary" form
And I want to checkin this file to a storage category (using KPRO)
and then add it as an original to an existing DIR .
I have tried below :
1) Calling FM CV120_DOC_CHECKIN_FROM_TABLE
2) followed by CV115_DOC_SAVE_BUFFER
3) Finally , CV111_KPRO_SAVE
It is adding the file to the DIR But not checking in the file to the storage category .
Please suggest .
Got it after lot of debugging . The sequence has to be as below :
1) Call FM CV120_KPRO_MASTER_CREATE to generate LOIO and PHIO id
2) Call Subroutine to do the checkin
PERFORM doc_checkin IN PROGRAM SAPLCVAPI01
3) Call the Save , CV111_DRAW_SAVE to update the DIR data in buffer
4) Finally call the CV111_KPRO_SAVE
And Done !! Hope it helps somebody else.