Skip to Content

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

API/FM to Add original to Existing DIR & Check in

Hi experts,

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 .



Thanks

Former Member
Former Member replied

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.

Best Regards,

Rini

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