Document not visible in Original document list

Hi
I want to add document to SAP DMS, found BAPI_DOCUMENT_CREATE2 on net.
I found a sample program on a thread but when I am executing this I get the newly created document in CV03N but I dont find the document in Original document list.
FUNCTION Z_DMS_CREATE_DOCUMENT_01.
  DATA: ls_doc LIKE bapi_doc_draw2,
    ls_return LIKE bapiret2.
  DATA: lf_doctype LIKE BAPI_DOC_AUX-DOCTYPE,
        lf_docnumber LIKE BAPI_DOC_AUX-DOCNUMBER,
        lf_docpart LIKE BAPI_DOC_AUX-DOCPART,
        lf_docversion LIKE BAPI_DOC_AUX-DOCVERSION.
  DATA: lt_files LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE,
        lt_drat LIKE bapi_doc_drat OCCURS 0 WITH HEADER LINE,
        lt_drad LIKE bapi_doc_drad OCCURS 0 WITH HEADER LINE.
    ls_doc-documenttype = 'DRW'.
    ls_doc-documentversion = '00'.
    ls_doc-documentpart = '000'.
    ls_doc-description = 'New doc 23 July'.
    ls_doc-username = 'TestUser1'.
    REFRESH lt_files.
    CLEAR lt_files.
    lt_files-docfile = 'E:\temp\Sample.pdf'.
    lt_files-wsapplication = 'PDF'.
    APPEND lt_files.
    CLEAR lt_drat.
    REFRESH lt_drat.
    lt_drat-language = 'EN'.
    lt_drat-description = 'Data01'.
    APPEND lt_drat.
    lt_drat-language = 'EN'.
    lt_drat-description = 'Data02'.
    APPEND lt_drat.
    CLEAR lt_drad.
    REFRESH lt_drad.
    lt_drad-objecttype = 'MARA'.
    lt_drad-objectkey = 'A006'.
    APPEND lt_drad.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2' EXPORTING:
          documentdata = ls_doc
      IMPORTING:
          documenttype = lf_doctype
          documentnumber = lf_docnumber
          documentpart = lf_docpart
          documentversion = lf_docversion
          return = ls_return
      TABLES:
          documentdescriptions = lt_drat
          objectlinks = lt_drad
          documentfiles = lt_files.
    IF ls_return-type CA 'EA'.
        ROLLBACK WORK.
        MESSAGE ID '26' TYPE 'I' NUMBER '000' WITH ls_return-message.
    ELSE.
        COMMIT WORK.
    ENDIF.
ENDFUNCTION.
Can anybody help.
Thanks in advance
Ruhi Hira

Hi,
based on the sample coding I think that some more data needs to be passed in parameter lt_files. I would recommend you to see the BAPI description in transaction BAPI for the DOCUMENT_CREATE2 BAPI and made sure that the necessary data for
BAPI table DOCUMENTFILES are also handed over correctly.
Best regards,
Christoph

Similar Messages

  • Revenue Document Not visible in Document Flow of Billing Document

    Hi Friends,
    I am facing the below issue Only in Quality System.
    From with in the Billing Document when  click on "Accounting Overview Button" (i.e. Shift + F4 Key), list of Accounting Documents are Displayed.
    In Development:
    I am able to see 4 Documents when I click on the "Accounting Overview Buttion" :- Accounting Document, Profit Center Document, Controlling Document and Profitability Analysis document.
    In Quality:
    I am only able to see only 2 Documents when I click on "Accounting Overview Button": Accounting Document and Profit Center document.
    In Quality System, when I checked KE24, I could see that Profitability Analysis Document has been created but the same is not visible in the Document Flow.
    I did not check the Controlling Document, because I was not aware how to related it to the Sales Doc or Billing Doc.
    I have also checked the following OSS notes: 877921, 453772 and 545505. Correction suggested in this OSS note are already implemented.
    Thanks in advance for your help.
    Regards,
    Raj.

    Hi,
    based on the sample coding I think that some more data needs to be passed in parameter lt_files. I would recommend you to see the BAPI description in transaction BAPI for the DOCUMENT_CREATE2 BAPI and made sure that the necessary data for
    BAPI table DOCUMENTFILES are also handed over correctly.
    Best regards,
    Christoph

  • Attachment MIR4 not visible on FI document.

    Dear forum readers,
    When we attach a PDF file with the MIR4 transaction (business object BUS2081), this attachment is not visible from the attachment list on the follow-on document (FI document, business object BKPF). The attachment is only visible in the material document. Does anybody know how to solve this issue?
    Many thanks,
    John.

    Hi,
    check this OSS Note:
    Note 360610 - MR3M / MIR4: Display of linked documents in FI
    https://service.sap.com/sap/support/notes/360610
    Best regards.

  • Document NOT visible.  Doc tab and layers ARE visible. HELP!

    Installed Photoshop CS5 months ago.  Have completed dozens of projects with only the occasional crash.
    Yesterday it crashed "Photoshop needs to close".
    When I reopened the file, the document is not visible.
    The document tab is correct and the layers are intact and visible.
    Tried opening other psd's, same results.
    Will not create a new document, New document panel does not appear.
    Moved same psd to laptop, opens like a charm.
    Vista, 32 bit.
    The file that crashed was a larger file, but I've definitely worked on much larger files consistently.
    Could not find other posts regarding same issue.
    Do I need to reinstall Photoshop?
    What went wrong?
    Thanks bunches, appreciate it!

    Your graphics card driver needs updating/ reinstalling and you may need to disable OpenGL in the preferences. Anyway, you'd get much better and quicker answers, if you posted your questions in the right forums, so keep that in mind next time and use the PS specific forum.
    Mylenium

  • I save and closed my Keynote presentation and it just won't open. Message : Can't open document «Not a valid ketnote document»

    I just finished a keynote presentation and saved and closed it. Now it just won't open. Message : Can't open document «Not a valid keynote document»
    I recreated a new one. And it does the same. Impossible to reopen any of my keynote presentations.
    What can I do!!! My presentationis tomorrow morning!!!
    Keynote '09 version 5.0.5 with MAC OS 10.6.7

    Have the same issue. Use the same version and OS. I get sometimes the message 'Could not save the document. No such file or directory. What happens is that the file is corrupted and not usable anymore.... Sorry i can not help, but this is a serious error and we get crazy here since we have several stations with the same problem....
    Come on Apple... help!

  • Book mark not visible in splitted document by using Acrobat 9 pro

    Hello,
    I am using splitting the pdf document in Acrobat 9 pro. I can splitted the document but bookmark not visible in bookmark tab. Help me to get bookmark text in splitted document. Suggest any idea if anybody knows.
    Thanks
    kaleel

    Use Arts PDF splitter it gives bookmark after splitting the PDF. And the bookmark will be visible for the splitted PDF.

  • How do I validate a certificate (not visible) at the document level?

    I am using Acrobat XI Pro running in Windows 8.
    I created a PDF document with form fields (type: button) and JavaScript codes (field-level and document-level). Before I certify (not visible) and save the document, I want to add a document-level script that checks if the certificate is valid. If the certificate is valid, I would like to  schedule an interval object to update some of the icons in the fields. Is this possible? If so, how do I get the “certificate (not visible) field” and check that it is valid
    Thanks. - john

    I am using Acrobat XI Pro running in Windows 8.
    I created a PDF document with form fields (type: button) and JavaScript codes (field-level and document-level). Before I certify (not visible) and save the document, I want to add a document-level script that checks if the certificate is valid. If the certificate is valid, I would like to  schedule an interval object to update some of the icons in the fields. Is this possible? If so, how do I get the “certificate (not visible) field” and check that it is valid
    Thanks. - john

  • PDS Appraisal Completed - Document not visible to manager

    Dear ,
    We are going live with Objective settings and performance appraisal. The functionality working well except an issue. The completed appraisal of subordinate is not visible to manager where as the same is visible to employee.
    Any idea why manager nnot able to see completed document after employee agreed on the PDS?
    Thanks in advance

    Hi,
    Thanks for your reply.
    1. "Please check role tab under category and template which you have been defined"
             In the category and Manager we selected
                    Self
                    Manager
                    Higher manager
    2. under this how many level of employee you have selected in which way like appraiser, and appriasee, like manager, co worker .
          (Employee>Manager>Higer Manager-->HOD )
          Employee
          Immediate Manager (line Manager)
          Higher Manager ( Manager of Line Manager )
          HOD (Cost centre Owner)
    3..more over you check manager position coming under which position....
         I am not clear about the above , can you eloborate?

  • Margins on print copies from HP Officejet Pro 8600 Printer are not aligned with original document

    My HP Office ject Pro 8600 Printer is not printing the same margins as my original document.  The left margin on the print copy is 3/4" too far to the right.  The margin on the right is too far right and the text is being printed off the page! The problem seemed to start when I loaded Avery Labels to print. I run a non-profit and need to make copies asap for a sponsorship letter for a fundraising event.

    Hi lbaker67, 
    Have you tried doing the firmware update for the printer? The firmware update
    Fix/Enhancements are as follows.
    1) Enhance ePrint Diagnostic report for ePrint Setup
    2) Improve ease of wireless setup
    3) Enhanced Embedded Web Services
    4) Improve Print Quality
    5) Improve Ink Usage
    6) Improve paper path performance
    7) Improve Digital scan performance
    To check the version of your current printer firmware:
    Printer Information Screen
    1. From the Control panel, press Help (?) button, select Printer Information
    2. Use the down arrow button to scroll to the 2nd screen
    3. The current firmware revision will appear on the screen
    If you do not have Version CLP1CN1322CR you need the update.
    HP Officejet Pro 8600 Firmware
    This update may resolve the issue. If you require further assistance please post back and I will follow up with you.

  • Documents not Visible & Unsatisfactory Chat Support

    I occasionally have problems with seeing my pasted created documents after logging in to my page. During the time that this happens I also can't create/merge any pdf files. I went online to ask for technical support to see if this was an internal problem or a problem on my side and this is what I experienced ...
    On the support page I saw that a customer service agent was "available NOW to chat" with me. I select the chat option and then was told that there were 4 customers ahead of me and my approximate wait time was just over 5 minutes. Well a half hour later I finally got my customer service agent who has been "available NOW to chat". If that was not frustrating enough here is an outline of how my chat went ... (I wish I would have emailed myself the chat log but at the end of it I was so frustrated that I just closed the chat box angerly.)
    The representative identified himself and then disappeared for 3-4 minutes as he verified my information/account. As he did that I explained to him my problem/confusion with the site, specifically how I was not able to merge documents. After a few minutes of him confirming my problem and him (probably) attempting to find a solution in his provided solution manual, he directed me to open a pdf that I was not able to merge with another. So I opened one .... and I waited for nearly a minute ... he directed me to select "File" ... then I waited another minute ... then he told me to select "Properties" on the drop down menu. Having to wait a minute between directions that need to happen in one motion is ridiculous, I can't select file and then type "ok" at the same time. He then slowly told me more directions, and when I become slightly confused about what property he wanted to reference on the Security page he made a comment and referred to me directly by my name within the comment. It was extremely unprofessional and rude way to respond to my confusion. I would have not been confused had he not given me proper instructions and had he not typed slower then 20 words per minute. He then did it AGAIN a few lines later in the chat, and then in a round about way told me I was an idiot/incompetent and it was impossible for me to merge that specific pdf with another even though I told him I was able to do so a day before these issues had arisen.
    It became very clear that he did not know how to mitigate the situation. Furthermore, this was clearly not a pdf merging problem because I was also unable to see any of my previously merged documents. I am extremely dissatisfied with the service I received from this agent. I found him rude and demeaning. He also should not be the type of person that is working with customers through chat; he is an unbelievable slow typist and he does not understand how to give directions. If Adobe is instructing their reps to provide service at a "novice" customer, then they need to ask prescreening questions because most people who are going to use the chat option are likely not novices. Furthmore, why does Adobe not provide contact information for people who want to file complaints??
    I still never figured out why CreatePdf was not functioning properly but it has been working fairly well since then. I only posted this here because I want to bring this situation to the attention of Adobe and there is no other way to do so. I hope that they read this and follow up with me and address the problems with the chat agent.

    Good morning Lindsey,
    Let me begin by apologizing for the level of service you received from our staff.  I've reviewed your interaction and I have provided some feedback to Raghu's manager.
    I'm glad to hear that the service is working properly for you now.  Please let us know if we can be of assistance in any way.
    Kind regards,
    David

  • Appraisal Document not visible to further Participant

    Hi Members,
    I have used three participants in "category" option of Appraisal template.
    1. Appraisee  - Employee
    2. Appraiser  - Supervisor
    3. Further Participant - HOD
    In Enterprise Portal , i am using a BSP page (from SE80 --> BSP Application --> HAP_Document_Pa --> Pages with Flow Logic --> documents_todo.htm) in MSS, earlier the HOD was able to find the appraisal document, but for unknown reasons, now the HOD is not able to find the appraisal document.
    And in criteria Group, though i have given the change option to Supervisor through element access and display option to Employee and HOD, but even the supervisor is not able to make changes in the criteria group, as the text box is displayed in grey (non editable mode).
    Kindly help me know the reason and solution, so that HOD could complete his part of review from his MSS screen.
    Regards

    Hi Lincoln,
    Thnx for responding.
    Yes a separate Iview is created to call the BSP page, and we have used "documents_todo.htm" and even the supervisor (in Review) and HOD (In Process) were able to view the appraisal document as and when the statuses changes, because the BSP page "documents_where_participated.htm" shows the appraisal documents even if the document is with employee or supervisor.
    About the value of i-view parameter MODE as X, do you mean "parameters to pass from Page Request (for URL isolation)" is not set as 'X', as the portal guy is not available at the moment, me being a functional consultant, i also need to fix the BSP issues through Portal.
    But i want start afresh, when the appraisal document is "in planning", the document should be available with the employee, when the appraisal document is in "In review" stage, the document should be available with the Supervisor, when the appraisal document is in "In Process" stage, the document should be available with the HOD.
    Plz suggest the BSP's for employee, supervisor and HOD, correct me if i need to make any corrections in the statuses or participants.
    Regards
    Edited by: nivedita chowdary on Jun 25, 2009 7:05 AM

  • Accounting document not posted from billing document SD module

    Dear Sir,
    I am encounting a weird issue in SD module, that is when I am saving the billing document the system will generate accounting document automatically from my ID but when the same process will perform from the other ID having same rights and previligies then system prompt the folllowing message .
    "Tax code C1 does not appear in any G/L account item"
    It means the system allow a specific user to post accounting document with reference to billing document but not allowing to post from any other ID.
    Apparently this issue related to basis module. we have checked in the basis area as well . still unable to get ane resolution for this issue.
    Best Regards,
    HASEEB KHAN
    MM,PP,SD CONSULTANT

    Hello Haseeb,
    In that case, I would suggest you check Change Message Control for Taxes follow following path in SPRO:
    IMG - Financial Accounting (New) - Tax on sales/purchases - Basic setting - Change Message Control for Taxes
    Check corresponding doc to it and go through different Application Area, particularly, FF
    Also refer SAP Note 495737 - Customizable messages in FI_TAX_SV_BSEG_BSET_GROSS
    Hope this can assist you in understanding
    Thanks & Regards
    JP

  • Accounting document not cleared when billing document is cancelled.

    Hi,
    In ECC 6.0 when we cancel a billing document through vf11 in vfo3 we find the status as accounting document not cleared.
    The general process is manually going to f-23 and clear customer line items of that invoice. After doing this the status become accounting documet is cleared.
    My requirement is how to cancel the billing document without getting this message (accounting document not cleared) and not clearing the customer line items manually.
    Can it be done through user exit/enhancement or by copying requirement vofm.
    Please suggest.
    Thanks
    Edited by: sumesh on Jul 29, 2009 6:33 PM

    They directly want the accounting document to
       be cleared when billing document is cancelled.
    Though you can achieve this with the help of ABAPer, why dont you consider having a Posting block for your billing type so that as and when the billing documents are generated, you can release it via VFX3 in bulk or VF02 for individual billing document release to FI.
    In order to achieve this, go to VOFA, select your billing type and execute.  There you can see a field "Posting block" where maintain a tick there and save.  With this control, first of all, you can ensure that before releasing F2 billing documents to FI, it is not cancelled.
    thanks
    G. Lakshmipathi

  • Some of my google talk contacts are not visible in the online list.

    Hello!
    I have problems with some of my google talk contacts.
    When they are offline - I can see them in the contact list (in offline group).
    But when they are arrived online they disappear from the contact list. Thus I can't find them neither among online people, nor among offline. But I still can chat with them.
    What can be wrong with the iChat?
    Tiger 10.4.11, iChat AV 3.1.9 (v446)
    Message was edited by: leon.b

    Hi,
    I have seen this in a post before.
    Unfortunately I can not remember of the top of my head what the issue turned out to be.
    iChat can not turn the Jabber Buddy List to Invisible but that does not mean other clients can't. However you seem to think this is not the case.
    A search here for Disappearing Buddies is likely to turn up all the AIM issue threads.
    Are you using the Googlemail Web page at the same ?
    I seem to remember I had an issue when I did this.
    I would be tempted to delete com.apple.ichat.Jabber.plist and restart iChat to get the Login to Reset which may reset Flags on your Buddy List or your account info at GoogleTalk.
    10:13 PM Thursday; June 26, 2008

  • Condition type not visible in billing document

    Hi
    We are currently in the process of making some changes to the pricing procedures.
    While processing an IC order, we find the following discrepancies,
    In VA03, when we enter the order details, the price shows the expected value and so do the condition details.
    However, in the billing document for the same, in VF03, we find that one of the condition types are missing, hence the value in the sales document and the billing document are different.
    I have checked the details in the condition types, pricing procedures and the access sequences, everything appears to be configured correctly.
    Please advice as to how this can be corrected.
    Thanks
    sap10

    Hi
    Check in pricing procedure (tcode V/08) if you have any Reqt.
    Other possibility, but I think that it doesn't matter in your case. See SAP Note 105621 - Authorization check for the condition screen, that it is used to hide conditions, but not for delete them.
    I hope this helps you
    Regards
    Eduardo

Maybe you are looking for

  • Consumption of Water & Power

    Dear PM GURUS, First of all i thanks to all the PM gurus for giving the good solutions for my questions.  I hope in future also i will get the same response from you people for my questions. In my business scenario, Maintenance people note down the p

  • How to save the data present in the description box?

    HI friends,                I have got a requirement where i am having one description box (custom_container) in one screen and the line length is 250. Code is like this... DATA: CUSTOM_CONTAINER TYPE REF TO     CL_GUI_CUSTOM_CONTAINER, EDITOR TYPE RE

  • Why can't I download i tunes on my PC

    I have tried many times to download I tunes on my PC laptop?  I 've tried turning off my firewall still get the same error message with the big red X. Any help would be appreciated.

  • Database search not working

    Hi all, I am new to Orcale SES. I have to search database using SES. I have created database source with the following details: Database Connection String,User ID,Password,View,Document Count,URL Prefix, Parse Attributes, Remove deleted documents,Att

  • Java-wsdl-mapping file with incorrect case

    Hi. We're working with JDeveloper 10.1.3.1 preview and have encountered what I believe to be a bug. We have a schema with element names that are mixed case (such as FirstName). We are trying to use JAXB to create our classes and then wrap it as a web