Get document info in INBOX

Hi,
Can every one tell me witch FM must be use to get liste of document (mail) received in the INBOX in WORKPLACE.
the FM : SAP_WAPI_CREATE_WORKLIST give me the liste of workflow but I need more that to get the document(Mail) detail liste received.
Thanks.

Hi
Try this
HttpServletRequest request = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
Cookie[] cookies = request.getCookies();
See this Thread
Re: How to get the client IP using Web Dynpro API?
Kind Regards
Mukesh

Similar Messages

  • How to get document info..???

    Hii all..
    I am trying to retrieve the doc_info of a particular document from oracle webcenter content using RIDC by following method :-
    public void info() throws IdcClientException, IOException{
    IdcClient client=getConnection();
    DataBinder binder=client.createBinder();
    binder.putLocal("dDocName", "COOPER_4444001205");
    ServiceCallUtils ss=new ServiceCallUtils();
    List doclist=new ArrayList();
    DataResultSet data=ss.getDocInfo(binder);
    System.out.println(data);
    doclist= data.getRows();
    Iterator it=doclist.iterator();
    while(it.hasNext()){
    System.out.println(it);
    but ss.getInfoData is not returning anything and the DataResultSet data is remaining null.
    Does anyone know how to fix this...???
    Edited by: 938480 on Jun 13, 2012 7:10 AM
    Edited by: 938480 on Jun 13, 2012 7:22 AM

    All getDocInfo does is the following:
    return binder.getResultSet("DOC_INFO");
    You must first execute some sort of DOC_INFO service call to get the DOC_INFO ResultSet.
    binder.putLocal("IdcService", "DOC_INFO_SIMPLE");
    DataBinder result = null;
    try {
    ServiceResponse response = client.sendRequest(userContext, binder);
    result = response.getResponseAsBinder();
    DataResultSet data=ss.getDocInfo(result);
    } catch (IdcClientException e) {
    Jonathan
    http://redstonecontentsolutions.com
    http://corecontentonly.com

  • What's the bapi for getting document details ?

    hi,
    i'm trying to do F-22 things through BAPI, but there's one field in some screen that i can't find relative field in any structure of BAPI para., so i tried to get the details of the document created by F-22 to find where the field i'm looking for is stroed.
    so would you please tell me the bapi for getting document info.?
    thanks!

    Hi,
    Have you solved your problem?
    If not:
    Have you tried to debug your application and see what you have in your object just after doing GetByKey?
    The GetByKey method returns true if it founds the object, false if the key does not exist.
    In the DI Help File it is specified the key for a payment is the DocEntry...
    Regards
    Trinidad.

  • How to get the "Document Info" in illustrator

    In illustrator using "Document Info" we can get the file information. Like that how to get the document information using script. Anyone please help me.
    Regards,
    Prabudass

    I think sample code in the SDK contains a 'skeleton' plugin, I'd start with that. It should also provide a list of suites that get automatically loaded, I think it's in Suites.h. Just make sure AIDocumentSuite is in the list, and if it's not, just follow the examples in that file to add it. That should end up with a global variable called 'sDocument', which has all the suite functions as methods.
    Then it's something like:
    AIDocumentSetup setup;
    AIErr error = sDocument->GetDocumentSetup(&setup);
    // check error to make sure it's kNoErr
    Then you just have to inspect the setup struct for (hopefully) the answers you're looking for.

  • How to get the "Document info" in illustrator cs?

    Hai all,
    I need to know how to get the counting of RGB objects, CMYK Objects and Grayscale Objects information for illustrator vector(editable) file.
    In illustrator raster image file, i need to know how to get the Embedded image information(Resolution, Mode).
    I collect these infomation manually from "Windows->Document info". I saved the "Document Info" details in illustrator manually using "Document Info Pannel". I dont know how to save that information through "illustrator sdk" or through any other way without manual interaction. Could you please advice me. This is for windows operating system.
    Thanks,
    Prabudass

    I think sample code in the SDK contains a 'skeleton' plugin, I'd start with that. It should also provide a list of suites that get automatically loaded, I think it's in Suites.h. Just make sure AIDocumentSuite is in the list, and if it's not, just follow the examples in that file to add it. That should end up with a global variable called 'sDocument', which has all the suite functions as methods.
    Then it's something like:
    AIDocumentSetup setup;
    AIErr error = sDocument->GetDocumentSetup(&setup);
    // check error to make sure it's kNoErr
    Then you just have to inspect the setup struct for (hopefully) the answers you're looking for.

  • Get the document info panel details

    I need to get the document info panel (Windows>Document Info) details through scripting in illustrator cs3. Kindly advice me is it possible or not.

    I think sample code in the SDK contains a 'skeleton' plugin, I'd start with that. It should also provide a list of suites that get automatically loaded, I think it's in Suites.h. Just make sure AIDocumentSuite is in the list, and if it's not, just follow the examples in that file to add it. That should end up with a global variable called 'sDocument', which has all the suite functions as methods.
    Then it's something like:
    AIDocumentSetup setup;
    AIErr error = sDocument->GetDocumentSetup(&setup);
    // check error to make sure it's kNoErr
    Then you just have to inspect the setup struct for (hopefully) the answers you're looking for.

  • Get Linked Document info into Purchase Order

    Hi,
    There is a popup which comes up upon pressing the attachment key in ME21N. This is currently blank.
    My requirement is to fill this popup with Linked Document Info from Material master into Purchase order at PO creation (ME21N).
    The fields that I want are
    DRAW-DOKVR (Document Version) or DRAD-DOKVR
    DRAW-DOKNR (Document Number)
    I found a BADI Document_main01 but how do I pass material number (EKPO-MATNR) to it as the OBJKEY in DRAD table.
    Is there any other way to populate the document number and version which is stored in the material master.
    Appecriate your help !

    Hi Shyam,
    Thanks for your reply.
    Could you please briefly explain your point.
    I am stuck up at some point and unable to find exactly the place to insert the specified data in the BAPI.
    Also note that I need to update data which I will take from Sales order in header text of PO. This data should automatically be picked up while Saving the PO.
    Useful replies will be definitely rewarded.
    Regards,
    Daya.

  • System.IO.FileNotFoundException: The Web application at ..not found - when getting document versions in a doc lib

    i have created a    asmx file using vs 2012 4.5 framework, and published to my d:\  drive  and mapped to a  iis  web site
    but when i trued to consume this from a another web appln, it throws me the below error:
     System.IO.FileNotFoundException: The Web application at http://srvr:4000/sites/mysitecollec could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a
    new request URL mapping to the intended application.
       at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId,
    Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String&
    appSiteDomainId, Uri& primaryUri)
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
       at FetchlatestDocDet6Jan.FetchLatestDoc6Jan.<>c__DisplayClass1.<FetchLatestDocVer>b__0() in d:\PublishWSFetchLatestDoc6Jan.asmx.cs:line 41
       at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
       at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
       at FetchlatestDocDet6Jan.FetchLatestDoc6Jan.FetchLatestDocVer(String fileName, String processID, String subProcessId) in d:\PublishedWS\FetchLatestDoc6Jan.asmx.cs:line 35
    [WebMethod]
            public DataTable FetchLatestDocVer(string fileName,string processID,string subProcessId)
                DataTable dtFiles = new DataTable("File Details");
                dtFiles.Columns.Add("File Name");
                dtFiles.Columns.Add("File Version");
                dtFiles.Columns.Add("File Url");
                SPSecurity.RunWithElevatedPrivileges(delegate()
                    // implementation details omitted       
                //using (SPSite mySite = new SPSite(siteUrl))
                using (SPSite mySite = new SPSite("http://srvr:4000/sites/mysitecoll"))
                    using (SPWeb myWeb = mySite.OpenWeb())
                        SPList oList = myWeb.Lists["TEST DOC LIB "];
                        SPView oView = oList.Views["All Documents"];                  // SPQuery oQuery = new SPQuery(oView);
                        SPQuery oQuery = new SPQuery();
                        string query = "<Query><Where><And><Eq><FieldRef Name=Title/>" + "<Value Type=Text>" + fileName + "</Value></Eq>"
                                        +"<Eq><FieldRef Name=ProcessID /><Value Type=Text>"+processID+"</Value></Eq>"
                                        +"<Eq><FieldRef Name=SubProcessID /><Value Type=Text>"+subProcessId+"</Value></Eq>"
                                        +"</And></Where></Query>";
                        oQuery.Query = query;                    
                        oQuery.ViewAttributes = "Scope=\"Recursive\"";
                        SPListItemCollection collListItemsAvailable =
                         oList.GetItems(oQuery);
                        foreach (SPListItem oListItemAvailable in collListItemsAvailable)
                           // Console.WriteLine(oListItemAvailable["Name"].ToString());
                            SPFileVersionCollection versions = oListItemAvailable.File.Versions;
                            // If the file has versions, loop through all of the versions
                            if (versions != null)
                                if (versions.Count > 0)
                                    foreach (SPFileVersion version in versions)
                                     //   Console.WriteLine("Version Info:: {0}, {1}", version.VersionLabel, version.Url);
                                        DataRow dr = dtFiles.NewRow();
                                        dr[0] = oListItemAvailable["Name"].ToString();
                                    //Added data to the datatable
                                else
                                  //  Console.WriteLine("Version Info:: {0}, {1}", oListItemAvailable.File.UIVersionLabel, oListItemAvailable.File.Url);
                                    DataRow dr = dtFiles.NewRow();
                                    dr[0] = oListItemAvailable["Name"].ToString();
                                    dr[1] = oListItemAvailable.File.UIVersionLabel;
                                    dr[2] = oListItemAvailable.File.Url;
                                    dtFiles.Rows.Add(dr);
                return dtFiles;

    "The Web application at http://server:port/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing
    content, the system administrator may need to add a new request URL mapping to the intended application"
    Here are the most common reasons this error can occur:
    The code is executed on a different machine - The SharePoint object model (except the Client API) requires to be run on the SharePoint server itself. It is not possible to run the application on a server which is not within the same
    SharePoint farm the code is trying to access.
    Insufficient Rights on the site collection - The code is executed in context of an account which does not have read permission on the site collection
    Incorrect Url being used - Verify that the site works correct in a browser and double check that the server is correct registered in the AAM settings
    Incorrect bitness - The SharePoint object model needs to be executed with the same bitness as the operating system. That means you cannot use the SharePoint object model in a 32-bit application if the Operating System and SharePoint
    are installed as 64-bit version. Ensure to compile the project using the correct bitness (64-bit on a 64-bit machine vs. 32-bit on a 32-bit machine)
    Incorrect .NET framework version -  Ensure that the project is configured to use .NET 3.5. .NET 4.0 cannot be used with the current versions of SharePoint
    from Mr.Stefan's post, i have checked with my code : as per the first reason: (1)
    i am running the code from my  SP 2013 machine only. but the only difference is that, i am using a  asp.net web appln and have added a SP references of 15 hive and trying to make a  lists.asmx file.
    also checked the reasons
    2,3 ,4 ,5 all are  fine from my end.
    here just wanna know: abt the below approach : whether its Correct or NOT.
    create a plain GetDocsWebService.asmx file from asp.net 3.5 framework and  write the code for retrieving items from doc.lib using SPSite, spweb, splists, xmldocument and retrieve a datatable . [[[ i have added a web reference of sp 2013 microsoft.sharepoint
    dll from  isapi folder, in this GetDocsWebService.asmx project ]]
    i deployed this web service on my SP server's  new iis site, c:\inetpub\wwwroot\GETDOCSPUBLISH  site
    now, at present , am adding a  normal asp.net 4.5 web appln and add the  web reference of this custom web service and trying to consume.
    at this point am getting mulitpl errors: like
    1) platform not supported : am stuck with this error!!
    2) sometimes, am getting document not valid...<html> <head> document not valid........</html>
    for the above 2 errorrs, i still could not able to find a solution!!
    is it because, lists.asmx is not supported in sp 2013? we need to depend on rest-api/ecma/csom ?? 
    so my question is ,  what should be the correct ad most recommended approach  for reading doc lib/ splist  records/items from a  remote macihne.

  • Document Info Record

    Hi All,
    A PDF file is attached to SAP Document Info Record. While opening that PDF file through CV03N getting a messege like -
    "Error while executing C:\DOCUME~1\.................."
    What can be the reason for this & how it can be soleved?
    Regards
    MHP

    Hi Manish,
    You need to define application type in DC30.
    Kindly put suffix as .pdf and mime type as "application/pdf". This will activate the application pdf in the sap dms.
    if you found problem with other files do same and fill mime types properly. Aslo tick the start authorization field in same screeen.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • FM to get document flow of Trading Contract

    Hi,
    In Trading contract display transaction WB23 we can see the document flow. For a processed Trading contract (Purchase side), in document flow we can see PO, Inbound delivery, Goods reciept, Nomination etc.
    Is there any FM to get all this document flow with full hierachy in a single shot? if not please suggest a combination of FMs to get this information.
    I found FM BAPI_TRADINGCONTRACT_GET_FLOW, which gives only the immediate follow-on document info like PO/SO details.
    Regards,
    Sudhakar.

    The FM MMPUR_EKBE_ARRAY_READ gives the Purchase order history only. It gives only the material document information but not the inbound delivery or nomination.
    I can use the FM BAPI_PO_GETDETAIL to get the confirmations, history and schedules of Purchase Order.

  • Spot color infomation not shown in Document info objects

    Hi,
    In the eps file, I have checked the Document info-->Objects menu in that spot color mentioned as "NONE"(refer img1.jpg). But in the same eps file Document info-->"Spot color Objects" menu its shows E(CMYK)(refer img2.jpg) that is spot color name. Could you please advise me why this difference occurs. Also I need to get this spot color object name via javascript, how to get this infomation?. I have attached the screen shot for your references.
    Thanks for looking into this,
    Maria prabudass

    Hi.
    TextFrame color informations included under textPath property.
    app.activeDocument.selection[0].textPath.fillColor.gradient.gradientStops[0].color.spot.na me
    If your selection is textFrames, add "textPath" after "selection[0]".
    Ten.

  • Freezinng with document info window

    I have a problem with all of the programs in my Master Collection CS5. When I open the document info window it comes up blank and then freezes the program. Mouse clicks don't work and the blank window won't close. The only way to exit is to force quit. I'm on Macbook with 10.6.8 OS. This happens iwth all progrms, Illi, Indesign, Dreamweave ect. Is there a setting I could have worng?

    Looks like someone was kind enough to move this to the InDesign forum.
    Please run InDesign and get it to hang, and then open Activity Monitor.
    In Activity Monitor, select InDesign and choose Sample Process. Save the output, upload to http://pastebin.com/, and post a link here.
    Next, still in Activity Monitor, run View > Send Signal: Abort (ABRT). You will get a crash report. Upload that to pastebin.com (and post the link here).
    We should be able to tell you why your software is freezing.
    Though a good bet often is 3rd party plugins, or Adobe's SING component.

  • Version Document Info Record and File Management

    Hi all!
    want to edit DMS document info records (as in cv04n - add, del files) without deleting original DIR -> Version management of DIRs.
    I use the following BAPI scenario:
    - BAPI_DOCUMENT_GETACTVERSION (get the highest version of a DIR)
    - BAPI_DOCUMENT_GETDETAIL2 (to get the object links of the DIR)
    - BAPI_DOCUMENT_CREATENEWVRS2 (create a new version of the DIR, copyoriginals = X, object links are copied as well)
    - again BAPI_DOCUMENT_GETACTVERSION (get this new version number)
    - again BAPI_DOCUMENT_GETDETAIL2 to get the files of the new version DIR)
    - to delete single files, i change the file record of the files table ( set deletevalue = X).
    - then BAPI_DOCUMENT_CHANGE2  as suggested in a nother thread of mine by 2 community members.
    the latest step runs for version = 00, but when having a version gt 00, the bapi_document_change2 returns : "original is already checked in and stored".
    also i checked the ph_objid and lo_objid (the ids are the same for Version n and n+1), which might be the reason for the error mentioned above.
    i can't find any solution.
    thanks for replies in advance,
    Christoph

    Hi all!
    got the solution: - finally !!!
    Problem:
    you want to edit Document info records - using a new version of this DIR. in the new version it is possible to add and delete files.
    Solution:
    - CALL FUNCTION 'BAPI_DOCUMENT_GETACTVERSION'
    and get the actual hightest version of the DIR
    - ls_objtype-OBJECTTYPE = '*'.
    append ls_objtype to myobjectlinks. to be able to copy all the objectlinks of the DIR.
    - lv_dokvr_new = lv_dokvr_ref + 1. - increment the DIR version number
    - CALL FUNCTION 'BAPI_DOCUMENT_CREATENEWVRS2 to create a new version of the DIR.
    - * get again the actual version
    CALL FUNCTION 'BAPI_DOCUMENT_GETACTVERSION'
    - * get files of the new version
    CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
    - * set the delete flag for those you want to delete in the table documentfiles.
    - CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'
    IMPORTANT ***
    !!! transfer O N L Y the files you want to delete O R transfer all files but C L E A R the STORAGE_CATEGORY field !!!
    any questions? feel free to ask...

  • SQVI - Material to Document Info Record

    I am trying to create a query that gives me
    Material Number <b>(I tried MARA and MARC but MARA wont join and MARC produces no data when ran)</b>Document Type (DRAW-DOKAR)
    Document Number (DRAW-DOKNR)
    Document Status (TDWST-STABK)
    Once I have these I can create a report that shows me all materials that are not at a release status. I know 90% of the tables I need but when I create a join using the Document Info Record (DRAW) and any of the material master records MARA, MARC, MAKT, MEBW I end up with a join that doesn't work or a join that doesn't have a similar key to run.
    Any ideas?

    When you go into MM03 and look at any material and then go to the additional
    data tab and then select document data that gives you the documents associated with a part. If you then double click on any document that gives you the document status.
    I am trying to create a report that gives me all open production orders - the parts on that production order (which I can do) and then for every part to see which have documents that are on a certain status.
    Example you may be creating an assembly and the drawing on the document went from a 2 hole gidget to a three hole gidget. Well - production people don't know that the document has been re-issued and is being reviewed. This way they can run a report that shows them which parts on the Production Order are currently in review so they should not waste time a money on an assembly if the design is being tweaked.
    Because you can get to the document status from the material master there must be a link. I don't know where that is. I tried MARA, MARC, MKPF and MSEG and nothing links with the document. But there must be something that triggers that the document is attached to certain part.
    I just need to know what table that is......

  • Document Info Record Visiable in Quality Notification

    Greetings All,
    I am trying to set a Document info Record in the material master such that when a quality notification is created; the DIR will appear in the Supporting Documents tab/Linked documents (Quality Notification).  The DIR should be material specific such that when a QN is generated; the linked document field is auto populated.
    Your attention into this matter is greatly appreciated.
    Many Thx,
    jaime

    Hi,
    In context with DMS when we create DIR it can have object links. In ur context Object links are material code and the Quality Notification.
    When u create DIR using CV01N and assign Material code in  object link tab the same can be viewed thru material master ---> additional data -
    > document data
    If you assign Quality notification number in Object link tab , the link will get created with Quality Notification which can be viewed in subject tab of Q Notification.
    Regards,
    Nitin

Maybe you are looking for