BAPI returns PDF

Hi all,
Am trying to implement a BAPI that rerutrns a PDF to a webdynpro. I create the PDF from a smartform through FM 'CONVERT_OTF_2_PDF'. Now this FM returns a table of type TLINETAB, and when a try to put a parameter of the same type in my BAPI i get the following message "Data type TLINETAB cannot be used for methods". Do you guys know what type should I use for the BAPI to return the PDF?

Thank you Sirdhar for replying. TLINE is a structure, but i need to return a table, if i eventually use TLINE I would be able to return just one line. Do you have any other ideas. I know i can convert my table to an xstring, but again BAPIs do not return xstrings. Thanks for your help.

Similar Messages

  • Error in BAPI RETURN for Service Contract

    Hi,
      I get an error in the BAPI Return for the Uploading the Service Contracts by LSMW. The Error Message is E BS No status object is available for &.Also want to know can we upload multiple line of header text for a Contract by this BAPI. If so then how would I do this , as the BAPI structure BAPISDTEXT has textline upto 132 characters. And I am take only one file in LSMW where the header & details come alongwith text. Or could also tell me the file structure of for the data upload. The legacy system sends multiple text in the header for a Contract.For Eg.
    Header1 Detail1 Text1
    HEader1 Detail2 Text2
    Header1 Detail3 Text3
    So I would need this text1TEXT2text3 in the Header Text of the Contracts. Or do I need the change the file structure. Many thanks for your time and help.

    Thanks Nablan, I could do that for multiple header coming in file. But I have a question for you on BAdI ALM_ME_006_GOODSMVT. I have implemented this BAdI , and this BAdI is called by a function Module ALM_MEREP_006_CREATE. When I test this FM giving the Material , Orderid and Movement type entries, this BAdI is triggered when giving a breakpoint. I've given this code for changing the movement type to 961. Cause the stanadrd scenario does not maintain Movement type 961 in Mobile Asset Management. The Movement type 961 for unplanned Materials comes to SAP and changes to 261 as maiantained by TCOKO table. To bypass this & retain the movement type 961 in SAP I'm using this BAdI. Currently this is what I'm doing and am stuck in the method interface how do I call the method.
    method IF_EX_ALM_ME_006_GOODSMVT~CREATE .
    break-point.
    *DATA : i_ce_goodsmovement TYPE REFERENCE
              ALM_ME_CUSTOMER_ENHANCEMENT.
    DATA : lr_badi_goods_movement TYPE REF TO if_ex_alm_me_006_goodsmvt.
    DATA : ls_user_data TYPE ALM_ME_USER_DATA-USERID.
    *DATA : goods_movement TYPE ALM_ME_MATERIAL_MOVEMENT.
    CALL METHOD lr_badi_goods_movement->create
      EXPORTING
           ce_goodsmovement = ce_goodsmovement
      IMPORTING
           user_data        = ls_user_data
           custom_user_data = ls_ce_user_data
           goods_movement   = goods_movement
      changing
           return           = return[].
    CALL FUNCTION 'ALM_ME_COMMIT_OR_ROLLBACK'
           TABLES
                return = return.
    endmethod.
    Please help me to get the data in this method. How do I call this.

  • How to replace numbers with text in tax return pdf using Adobe Acrobat X Pro

    How do I replace numbers with text in tax return pdf using Adobe Acrobat X Pro? The tax return was created using CCH software. Thanks for your review.

    Thanks Bill for your quick reply. CCH software is one of the major
    suppliers of tax return software. I found an internal source that helped me
    make the changes from numbers to text i.e. "$123,456" to "See Schedule O".
    I am not sure if I am working in form or final text. Thanks again! Kelly

  • Function or bapi returning customers or vendors with open items  per plant

    Dear experts.
    may you please tell me which function or bapi can i use that will return all customers or vendors with open items per given plant. i have tried to use BAPI_AR_ACC_GETOPENITEMS and BAPI_AP_ACC_GETOPENITEMS but they return open items for a given customer and vendor respectively per given company code.

    ok but those 2 BAPIs return open items after providing the customer or vendor. what i need is a BAPI which returns a list of customers or vendors with open items

  • Return PDF page number from the name of the link in InDesign CS4 JS

    Hi, I need to return pdf page number of the linked file in InDesign.Here what I have so far, but my FilePath comes back undefined, and I am not sure if pageNmuber line would work:
        var myArtBack = app.activeDocument.pages[1].rectangles[0].graphics[0];
        var myArtBackName = myArtBack.itemLink.name;
        var myBackFilePath = myArtBackName.filePath;
        var myPageNumber  = myBackFilePath.PDFAttribute.pageNumber;
    Your help is highly appreciated.
    Yulia

    Your first problem is:
    var myBackFilePath = myArtBackName.filePath;
    That should be:
    var myBackFilePath = myArtBack.itemLink.filePath;
    What you should have done is something like:
    var myLink = myArtBack.itemLink;
    var myPageNumber = myLink.parent.pdfAttributes.pageNumber;
    Maybe you need the file path for some other purpose, but that's not the route to information about the PDF graphic (the parent of the link) which has the pdfAttributes property -- property names always start with a lowercase letter.
    Dave

  • How to create a log file for bapi return structure

    Hi ppl,
         I am using BAPI_PO_CHANGE to mark the delivery of POs as complete after many validations through a classic report now my concern is i have been asked to create a log file which details the errors in the POs which is in the bapi return structure.
       I don't know how to do can any one help at the earliest.
    Regards,
    Bharathy.

    hi
    pls see this thread...
    it may help you...
    /people/kamalkumar.ramakrishnan/blog/2007/01/10/a-primer-on-using-and-creating-sap-application-log
    thx
    pavan
    *pls mark for helpful answers

  • Regarding BAPI Return Parameter.

    Hi All,
              I want to create Bapi Return Message with Variable values like : ' Sales Order 1876738267 is not created, please try again.' and want to create a log of this after BAPI calling in Calling FM. How can I do this. Please guide me.
    Thanks in Advance.

    Hi,
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
      EXPORTING
        ORDER_HEADER_IN           = sd_header
      WITHOUT_COMMIT            = ' '
      CONVERT_PARVW_AUART       = ' '
    IMPORTING
       SALESDOCUMENT             = sd_doc_num
      SOLD_TO_PARTY             =
      SHIP_TO_PARTY             =
      BILLING_PARTY             =
       RETURN                    = return_it
      TABLES
        ORDER_ITEMS_IN            = itemin_it
        ORDER_PARTNERS            = partnr_it
      ORDER_ITEMS_OUT           =
      ORDER_CFGS_REF            =
      ORDER_CFGS_INST           =
      ORDER_CFGS_PART_OF        =
      ORDER_CFGS_VALUE          =
      ORDER_CCARD               =
      ORDER_CFGS_BLOB           =
      ORDER_SCHEDULE_EX         =
    WRITE : / 'sy-subrc = ' , SY-SUBRC.
    IF NOT SD_DOC_Num IS INITIAL.
    WRITE : / 'Sales Order ' , SD_DOC_Num, 'Created'.
    ELSE.
    WRITE : / 'incorrect'.
    WRITE : / RETURN_it-TYPE , RETURN_it-MESSAGE.
    WRITE : / RETURN_it-LOG_NO, RETURN_it-LOG_MSG_NO,
              RETURN_it-MESSAGE_V1.
    ENDIF.
    Hope this helps you.
    Thanks,
    Ruthra

  • RFC returning PDF form in Binary table

    Hello,
    In our earlier application we were using a RFC to return PDF form as a table of binary fields and then these fields were concatenated and .pdf extension addded at the end. This will then display correctly in browser as a pdf form. Typically, this returns about 30000+ lines of binary for one form.
    Now we are migrating this application to Portal and I'm trying to display all this information through Adobe Interactive form. We do not currently have any other RFC to return all data that is part of the existing PDF document returned by current RFC. Getting all that data through one RFC is a tedious and time consuming task that we want to avoid. Is there a way to use the binary table returned by existing application and convert it to a pdf form? I was thinking of using the 'pdfsource' property of Interactive form - but am not sure about the possibilities.
    Can anyone help with some pointers?
    Thanks,
    Vishwas.

    I'm using following code to concatenate the binary string and then to display the PDF file.
    Concatenation was being done in earlier application and there is no code available for reference. I've tried following code, it opens the Adobe PDF viewer but it always shows error "File does not start with %PDF-". Please let me know if the code below is correct or is there something I need to do differently.
      public void wdDoInit()
        //@@begin wdDoInit()
    IWDMessageManager manager = wdComponentAPI.getMessageManager();
    //Populate data for RFC
    wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setKappl("V1");
    wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setKschl("ZA00");
    wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setKunag("0001000021");
    wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setKunwe("0001000023");
    wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setVbeln("0000018261");
    //Call RFC
    wdThis.wdGetPDF_from_Binary_compController().executeZ_Sd_Get_Output_Pdf_Verify_Input();
      int num = wdContext.nodePdf4().size();
    //Initial string
      String s = "";
    for(int n=0;n<num;n){
    //Concatenate binary data in string with Radix 2
    BigInteger bi = new BigInteger(wdContext.nodePdf4().getPdf4ElementAt(n).getData());
    s= bi.toString(2);+
       manager.reportSuccess(s);
    // Display pdf
        IWDResource resource = WDResourceFactory.createCachedResource(s.getBytes(), "file.pdf", WDWebResourceType.PDF);
        IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getUrl(0),"file.pdf");
        window.show();
       //@@end
    It opens the Adobe PDF viewer but gives error "file does not start with %PDF-".
    What is it that I'm not doing correctly here?
    Thanks,
    Vishwas.
    The data being returned from RFC is in RAW format. Is it same as Binary?
    Edited by: Vishwas Madhuvarshi on Mar 6, 2008 10:54 PM

  • SharePoint FAST Search 2010 not returning pdf files in search results

    Hi,
    Does anyone know why FAST Search 2010 is not returning pdf files in the results page.
    I'd checked the crawl log and the total files crawled indicates that the pdf file is picked up by the crawl.
    Thanks,
    Leon

    could you please make sure the PDF ifilter is properly configured? did you perform full crawl?
    http://nickgrattan.wordpress.com/2010/06/14/adobe-pdf-ifilter-indexing-with-sharepoint%C2%A02010/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • BAPI return

    Hi all,
    I am working on an SOAP to RFC scenario:
    I am able to execute the scenario. I am testing it using SOAP test tool.But i am facing a problem. when we give valid inputs to the BAPi, the BAPI return structure returns correct values, which is mapped to the response msg and the response is also fine, in the testing tool.
    But when i give non-valid values to the BAPI, the BAPI returns an error msg like "partner does not exist" and for some reason i am not able to see this msg in my response msg, instead i get an "XI Exception error in my
    testing tool display. How can i achieve, the BAPI return value to be displayed in my response msg for invalid values?
    Thanks in advance

    Hi,
    I had also faced the same problem in one of my scenarios. What you can do is, you can check the length of the parameter returned by BAPI. If it is zero, it means that non valid value has been passed to BAPI. In this case you have to map some constant to the target field during mapping.
    If the length is not zero, you can map it as it is.
    For finding the length of the field, you can use the standard text function: length. Hope this helps.
    Regards,
    Divija.

  • Regarding BAPI Return Table

    Hi all,
    I am having an issues, when the user enters the correct value into an input field then i am getting the output properly. But if he enters any wrong value a message is populated into the BAPI return table. So how do I check if the BAPI return table is empty or not. If it is empty then it has to open the output table and if it is not empty it has to show the error message as an pop-up or table format.
    Please reply, points will be rewarded.
    Thanks & Regards,
    M.Ramana Murthy

    Hi Ramana,
    If you want to capture the message returning from the BAPI which you are using then do the following:
    1.> Drag the line from the BAPI return port and link it to a form or to a table.
    2.> Then go to the form/table click the UIelement and in properties of that assign the default value which you want to display. It may be a message coming out of the BAPI.Through this way you can capture the values coming out of the BAPI
    Regards,
    Nutan

  • Multiline BAPI return structure  and RFC Adapter

    Since SP14 RFC Adapter check return structure of RFC function.
    But how it works if BAPI returns multiline BAPIRET2?
    Will adapter loop all elements and perfom commit only if <b>all</b> alements don't have errors.

    I'am about this:
    <i>As of SP 14 support for commit handling for single BAPI calls was added to the RfcAdapter receiver channel. If activated in the receiver channel setting, the received XI message will be executed as synchronous RFC (sRFC) in the receiving system. This is also true for asynchronous (QoS EO) XI messages to receive and analyze the execution result by the RfcAdapter.
                   The received response is parsed by the RfcAdapter to get the BAPI return parameter with name "RETURN". This return parameter can be of BAPIRETURN, BAPIRET1 or BAPIRET2 types. The "RETURN" parameter is checked for the response status (field TYPE) which can take following values:
                  1. 'S' : Success
                  2. 'I' : Information
                  3. 'W' : Warning
                  4. ''  : Empty String
                  5. 'A' : Abort
                  6. 'E' : Error
                   If the response contains one amongst the first four response status then it implies that the BAPI was successful. If the response contains one amongst the last two response then the BAPI failed. If the BAPI "RETURN" parameter is of not of type ABAP structure rather of type ABAP table, a empty table is also considered as successful execution result.
                   In case of a successful execution the BAPI function module "BAPI_TRANSACTION_COMMIT" is called within the same context to trigger the commit of the BAPI. In case of a failure the BAPI function module "BAPI_TRANSACTION_ROLLBACK" is executed by RFC Adapter which rolls back the changes.</i>

  • Cffunction - Accepting and Returning PDFs in memory

    Hello,
    This is something that I should probably know by now in my CF career, but up until now I have never thought/had to do this type of thing.
    I have defined a couple functions that I would like to handle accepting, manipulating, and returning PDFs in memory. What data types should I be using for accepting and returning the PDF in memory between functions?  I would prefer to stay away from "any" if possible, but let me know if that is the only choice.
    <cffunction name="AddMeUhWaddaMak" returntype="any" access="public" output="no">
            <cfargument name="src" type="any" required="yes">
            <cfargument name="name" type="string" required="no">
                   <cfpdf action="addWatermark"
                            source="#arguments.src#"
                            name="#arguments.name#"
                             ...>
                         <cfreturn arguments.name>
    </cffunction>

    Thanks again for the advice.  I was doing a little tinkering around with isPDFObject() just to see how it works and came to another question. See below..
    <cfdocument format="pdf" name="test2">
    test
    </cfdocument>
    <cfdump var="#isPDFObject(test2)#"><cfabort>
    The result says "NO", even though when I dump out "test2" it shows up as binary.

  • Is there any bapi returns dynamic value of reorder point and safety stock

    Hi all,
    Is there any bapi returns the runtime value of ROP and SS by passing changenr/objectid taken from CDPOS.
    if exists please send me with code.
    Thanks
    PRR R

    hi,
    As far as i know is static means manual entry of reorder point.
    The dynamic or automatic reorder point is used for Forecast based planning...
    the sysstem wii automatically calculate the reoder point evrytime there is the forecast run.
    So, it dependig on ur scenario , select either manual or automatic.
    First entry for both is always manual entry....
    hope u got this..
    Regards,
    Smitha

  • URGENT--Converting the BAPI return structure to XML

    Hi,
    I need to convert the return structure(export parameter) from a BAPI call to XML but not able to make out how to do that.
    Before this I was required to convert the BAPI return table(export table) to XML and I did that by first converting it to the AdoDataTable, added it to a dataset and then used the builtin function to return the dataset in XML format. But here I am not able to make out how can I do the same with the Export structure.
    Any help would be appreciated.
    You may also mail on [email protected]
    regards,
    Ankit Bhansali

    If the XML schema that you find as Xml attributes on the fields of the structure is good for you, you can just use the XML serializer to serialize it out:
    XmlSerializer ser = new XmlSerializer(typeof(BRFCKNA1));
    ser.Serialize(...);

Maybe you are looking for

  • How to resolve an issue of static and popping noises on my iPhone 4S?

    I just begAn to experience static and popping/crackling noises when on a call. This doesn't happen on speakerphone. I have had the phone for 13 months.

  • How to get specific data in a column.

    I have a column in a table where I have saved the addresses of files. As following Address_column D:\oracle\inventory_sheets.csv C:\oracle\sales\sheets.csv C:\Desktop\training_material\ presentation.pps. I want to get only the names of files which ar

  • Blue Screen error !!! 0x00000101

    Hi sorry if my english is`t that good.... I recetnly have a problem with my windows... this blue screen error often appeare when I playing games... Os: win 7 32B Ram : 4g Cpu : core i3 2100 and this is my minidump error that windows saved : http://0u

  • CR2008 Developer SP1 Needed

    I am looking for the location of SP1 for CR2008 Developer version.  I was told to post here for a link. Thanks, Brian

  • I cannot view photos in my albums in the finder window

    This is a repost since my original post was over a month ago and I did not reply to any of the responses to my question. I have my photos stored on an external drive (i don't even recall how i set that up), but here is my issue. When I try to view th