Function Module to check in a document

Hi everybody,
I'm currently working on some document management. My purpose is to implement the modification of documents.
I found out some BAPI such as BAPI_DOCUMENT_CHANGE2 but I'm having some troubles when I want to modify the status.
Using cv02n, it seems like checking in the original makes my BAPI works fine. I found some functions for that such as BAPI_DOCUMENT_CHECKIN2 but it raises the message error E 26 253 : Error while checking in and storing:
xxx\xxx\xxx.xxx
I checked in OACT transaction and my storage category is assigned.
Does anybody have ever faced this problem? Maybe there is an easier way to modify documents using fonctions?
Best regards,
Sebastien

hi,
Please check your entry once again,
Allocate document data
lf_doctype = 'DRW'.
lf_docnumber = '4711'.
lf_docversion = '000'.
lf_docpart = '00'.
lf_status = 'RE'. note: u are not enterd, status i guess, while u chek in the status should be changed from old to new.. try out by entring status,
Error occurred ??
IF ls_return-type CA 'EA'.
ROLLBACK WORK.
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH ls_return-message.
Also,
Note: in DC10, at define status, u select field, No entry, and run Bapi.
Benakaraj
??P

Similar Messages

  • Function module to check whether Goods Receipt of a Purchase Order is done.

    Hi,
    Is there any function module to check whether Goods Receipt of a Purchase Order is already done?
    Taking into consideration reversals.
    Thanks.

    Hi,
    I think u can do this by using a simple select query.
    u have to go in EKBE table.
    put the PO no. in field EBELN + EBELP(line item)  and get the material docuement no.  in field BELNR + BUZEI(line item).
    Thanks
    Jitendra

  • Function module to check if a given file/folder path is valid or not?

    Hi,
    I am using function modules GUI_DOWNLOAD and GUI_UPLOAD.
    Is there any function module to check if a given file/folder path is valid or not?
    Thanks.

    Hi Kumar ,
    REPORT  zdir_test.
    TYPE-POOLS: abap.
    DATA: v_dir TYPE string.
    DATA: v_bol TYPE abap_bool.
    v_dir = 'c:\sap\'.
    CALL METHOD cl_gui_frontend_services=>directory_exist
      EXPORTING
        directory            = v_dir
      RECEIVING
        result               = v_bol
      EXCEPTIONS
        cntl_error           = 1
        error_no_gui         = 2
        wrong_parameter      = 3
        not_supported_by_gui = 4
        OTHERS               = 5.IF NOT v_bol IS INITIAL.
      WRITE:/ 'Directory exists.'.
    ELSE.
      WRITE:/ 'Directory does not exist.'.
    ENDIF.
    Regards,
    Sachin M M

  • Function module to check if a file is already open

    Hi All,
    Could any one of you tell me a function module which checks whether a given file on the application server is currently being open or not.
    Regards
    Amit Mishra

    Amit,
    Try GET DATASET.
    Basic form
    GET DATASET dsn.
    Extras:
    1. ... POSITION pos
    2. ... ATTRIBUTES attr
    In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. For details, see File Interface.
    Effect
    Used to get the properties of a file already open.
    You can use this statement without additions to determine whether the file is open.
    If the file is not open, an exception of the type CX_SY_FILE_OPEN_MODE is triggered.
    Regards,
    Rao A
    Message was edited by: Rao Arimilli

  • Function Module tto check special characters in a field

    Hi All,
    I have a requriemnt where i need to make sure there are no special characters allowed
    in a paremeter ( is there any functional module to check it)
    r anyway to work with
    Thank in advance for u replies.
    Regards,
    Riyaz.

    DATA: vergleich_string(100) VALUE
              'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.
      CONCATENATE vergleich_string ' 1234567890,./!@#$%&*-_+=~|\[{]}()"'
                                                   INTO vergleich_string.
    use condition.
    if var ca vergleich_string.
    raise error message.
    endif.

  • Function module for checking existance of rfc destination?

    hi all,
       is their any function module for checking existance of rfc destination?
    regards
    deepak

    Hi,
    check teh table 'RFCDES'.
    reward if helpful.
    Regards,
    nagaraj

  • Standard function module for checking the sales organization and plant

    Hi all,
        Does have standard function module for checking the relationship between sales organization and plant?
    Thanks a lot!
    Nina

    hi
    good
    check these BAPIS
    BAPI_SALESGROUP_GET_DETAIL     Sales Group: Display Name                                                
    BAPI_SALESOFFICE_GET_DETAIL    Sales Office: Display Name                                               
    BAPI_SALESOFFICE_GRP_EXIST     Sales Office / Sales Group: Existence Check                              
    BAPI_SALESORG_EXIST            Sales Organization: Existence Check                                      
    BAPI_SALESORG_GET_DETAIL       Sales Organization: Display Data                                         
    BAPI_SALESORG_OFFICE_EXIST     Sales Organization / Sales Office: Existence Check                       
    PLANT=>
    BAPI_PROMO_GETSITEPLANNING     Detailed Data for the Plants Involved in a Promotion   
    thanks
    mrutyun^

  • Function Module which creates goods receipt document

    Dear all:
    Do you know a function module which creates goods receipt document?
    Thanks
    Bac

    Hello, Satyanarayana and Mickael,
    I found the function module.  It is called BAPI_GOODSMVT_CREATE. 
    Thank you for your suggestion.  I think your suggestion works also, so now I have two solutions that I can use.
    Bac

  • Function module to check source system

    Hello
    Can some one help me by providing the name of the function module to check the Source system connection?
    I know that in the source system we can right click and check.
    But i want to know the function module to check the status.
    Thanks in advance
    Kind regards
    M.A
    Edited by: M.A on Aug 19, 2008 12:42 PM

    Hi shasank,
    Thanks for the info.
    I had given the tech name of the source system as an input to the function module.
    But it raises an exception that destination does not exists.
    But the source system connection is ok.
    Regards
    M.A

  • Function Module For Customer Receivable Invoice Document Wise

    Dear All,
    Is there a standard Function Module / BAPI available for calculating Customer Receivable amount invoice document wise? I will explain the scenario in greater detail:
    1) Invoice is booked against customer (FB70 / SD Interface)
    2) Receipt is made (F-28 )
    3) Matching of invoice is done at the time of receipt (either partial or residual)
    4) Customer Account Clearing is done (F-32)
    We have explored tables BSID,BSAD,BSEG and BSE_CLR, but are unable to decipher the exact logic by which the System is storing the cleared amount, invoice document wise. We have tried referring to BSEG-REBZG (Invoice Reference) and BSE_CLR for finding out the clearing document and thus arriving at the invoice document balance, but the table entries are not similar in case of partial and residual payment and hence it is creating problem in deducing the actual invoice wise open balance. Can anyone refer to some FM / API / Logic for deducing the same?
    Your inputs will be sincerely appreciated.
    Thanks and Sincere Regards,
    Amitabha

    Hi People,
    Any ideas?
    Thanks and Sincere regards,
    Amitabha

  • Function module - post new G/L document

    What function module can I use to post a new document in FI?
    BR.

    Hi,
    Please refer to the link below and see if it helps
    Re: Posting Key in BAPI_ACC_DOCUMENT_POST
    Regards
    K.R

  • Function Module to check posting date

    Hi,
    Is there any function module avilable to check whether the posting date is open or not.
    Regards
    Suresh.

    check G_POSTING_DATE_OF_PERIOD_GET
    Reward points if useful, get back in case of query...
    Cheers!!!

  • Function module to read the pdf document.

    Hi guys ,
       I need to know the function module which is used to read all the documents(pdf).?
    Regards,
    vinothkumar.G

    Hi
    If you need to open and show a pdf file you can use the method EXECUTE of class CL_GUI_FRONTEND_SERVICES.
    CALL METHOD cl_gui_frontend_services=>execute
    EXPORTING
    document = 'MY_FILE.pdf'
    APPLICATION =
    PARAMETER =
    default_directory = path
    MAXIMIZED =
    MINIMIZED =
    SYNCHRONOUS =
    OPERATION = 'OPEN'
    EXCEPTIONS
    cntl_error = 1
    error_no_gui = 2
    bad_parameter = 3
    file_not_found = 4
    path_not_found = 5
    file_extension_unknown = 6
    error_execute_failed = 7
    synchronous_failed = 8
    not_supported_by_gui = 9
    OTHERS = 10
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

  • Function Module to Update Shipment Cost Document through Idoc.....?

    Is there any EDI function module which can Update Shipment Cost Document through Idoc.....

    Hi Vijendra,
    Welcome to SDN.
    You can use FM IDOC_INPUT_SHPMNT with message SHPMNT and IDoc type SHPMNT01/02/03/04/05 to update shipment document.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if very helpful.

  • Functional module to check a remove system is up

    Hi all,
    Could anyone of you tell me whether any function module exists using which whether we can know a remote system
    is pinging(up) or not?
    Thanks in advance.
    Thanks and Regards, Pradeep

    Try this:
    SALK_SYS_AVAILABILITY_RFC_PING
    Also try:
    RFC_PING_AND_WAIT
    RFC_PING (Specify the destination that you want to ping in the RFC Call)
    RFCPING (Specify the destination that you want to ping in the RFC call)
    Regards,
    Ravi kanth

Maybe you are looking for

  • My music has disappeared.

    Bought a new computer. Loaded iTunes and previous library was restored. Many months have elapsed. Previously library is now gone. All that remains is recently purchased and/or uploaded music. Any ideas as to where my previous library has gone and how

  • Vendor Capacity

    Hi! i would like to know if some of you guys have developed a program where in before you can create a PO for a particular vendor it will prompt (warning not error msg) you that additonal PO quanity has exceeded the total quantites (regardless of UOM

  • Running Scripts

    Hi, I'm new to adobe, and I've been reading lots on this forum to get info on writing scripts in forms. I'm creating a form that has two pages, one for internal and one for our client. I've written a couple things, and I was wondering what you do to

  • Help Purchasing 4 Copies of Photoshop CS6 with Discs?

    Hi All, I am the Team Leader of a very busy medical photography dept at the largest public hospital in New Zealand and we wish to buy 4 new copies of Photoshop CS6 for our medical photogapher ie one for each photographer. We cannot, nor will ever, us

  • Embedded images result in enormous filesize

    I'm using Illustrator to crop and arrange a number of raster images. However, I'm starting to have file management problems, because the Illustrator files quickly balloon in size. Example: I got public domain jpg image of a deer off the Wikimedia Com