cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member188458
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member188458
Active Participant
0 Kudos

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

former_member337201
Discoverer
0 Kudos

Dear Rini,

I am trying to achieve a similar requirement.

Would you be kind enough to put the sample code here..

It would be really helpful.

I tried using the FMs provided by you, but it is not checking in even then.

Thanks,

Sriram

former_member188458
Active Participant
0 Kudos

Sure Sriram . I would be glad to help.

I started with writing a blog post on it , should be done soon  . Will post you the link

Best Regards,

Rini

former_member337201
Discoverer
0 Kudos

Thanks Rini,

That sounds great. Awaiting your link

Regards,

Sriram

former_member188458
Active Participant
0 Kudos

Hi Sriram ,

Here is the link to my blog post for the same .

Best Regards,

Rini

Answers (0)