Inserting text to Acrobat PDF document, not able to create PDEText.

Hi ,
I have created a plugin for Acrobat, On press of MyPlugin's 'Insert' button it has to add the text to the document.
Eg: If there is a Active PDF document, which contains a text "Hello" in it. I want to insert "World" (i.e, the document should have "Hello World") when i click 'Insert' button.
I am writing the below function for this:
static void InsertCitationText(PDDoc activePDDoc,PDPage pdPage , int pgNum , int pgOffset)
      PDEContent volatile pdecontent = NULL;
      PDPage pdPage = PDDocAcquirePage (activePDDoc, pgNum);
      pdecontent = PDPageAcquirePDEContent (pdPage, gExtensionID);
    Here I have to create PDEText pdeText and assign "World" to it. How do i do this??
     I tried to do this in TextCreate function by looking into the sample plugin snippets but its not creating the text , when i debug and see the value value of 'pdeText' its giving,  "pdeText not found".
           PDEText pdeText = TextCreate();
      PDEContentAddElem(pdecontent, kPDEAfterLast, (reinterpret_cast<PDEElement>(pdeText)));
      /* Put the contents back in the page */
      PDPageSetPDEContent(pdPage, gExtensionID);
      /* Clean up */
      PDPageReleasePDEContent(pdPage, gExtensionID);
static PDEText TextCreate()
            PDSysFont sysFont=NULL; /* Used by PDEFont creation */
            PDEFont pdeFont=NULL; /* Reference to a font used on a page */
            PDEFontAttrs pdeFontAttrs; /* Font attributes */
            ASFixedMatrix textMatrix; /* Transformation matrix for text */
            PDEColorSpace pdeColorSpace; /* ColorSpace */
            PDEGraphicState gState; /* Graphic state to apply to operation */
            // Create a PDEText object
            PDEText pdeText = PDETextCreate();
            // Text to write to the PDF
            char *Title = "World";
            // Get system font
            sysFont = PDFindSysFont(&pdeFontAttrs, sizeof(PDEFontAttrs), 0);
            // Initialize the font descriptor then create the font reference.
            memset(&pdeFontAttrs, 0, sizeof(pdeFontAttrs));
            // Find the matching system font.
            pdeFontAttrs.name = ASAtomFromString("Verdana");
            pdeFontAttrs.type = ASAtomFromString("Type1");
            //Get system font
            sysFont = PDFindSysFont(&pdeFontAttrs,sizeof(pdeFontAttrs),0);
            pdeFont = PDEFontCreateFromSysFont(sysFont, kPDEFontDoNotEmbed);
            // Create a DEGraphicState object and set its attributes
pdeColorSpace = PDEColorSpaceCreateFromName(ASAtomFromString("DeviceGray"));
            memset(&gState, 0, sizeof(PDEGraphicState));
gState.strokeColorSpec.space = gState.fillColorSpec.space = pdeColorSpace;
            gState.miterLimit = fixedTen;
            gState.flatness = fixedOne;
            gState.lineWidth = fixedOne;
            // Create an ASFixedMatrix object
            memset(&textMatrix, 0, sizeof(textMatrix));
            textMatrix.a = Int16ToFixed(24);
            textMatrix.d = Int16ToFixed(24);
            textMatrix.h = Int16ToFixed(1*72);
            textMatrix.v = Int16ToFixed(2*72);
            //Create a PDEText Object
            pdeText =  PDETextCreate();
PDETextAdd (pdeText, kPDETextRun, 0,(ASUns8 *)Title, strlen(Title), pdeFont, &gState,
            sizeof(gState), NULL, 0, &textMatrix, NULL);
            PDERelease ((PDEObject) pdeColorSpace);
            PDERelease ((PDEObject) pdeFont);
            return pdeText;
Is there anyway i can add the "World" (as PDEElement) to document so that i can use in this function "PDEContentAddElem(pdecontent, kPDEAfterLast, (reinterpret_cast<PDEElement>(pdeText)));"  ???
Or
Should i use the above 'TextCreate()' huge function to create PDEText(PDEElement). If i have to use this method why the PDEText is not getting created? Am i missing something in the above function ??
Please someone help me out, Thanks in advance.
Regards,
Chetan.

Hi Irosenth,
I will give a try for this, we must try to certain extent who knows we may Succeed. We must noe give-up easily.
You have not said this is impossible, but you say this is difficult. Rite ??
If you give me support, i dont think it would be difficult.
First i will try to insert a text in a blank page.This is possible rite ??
I saw a discussion in this forum, http://forums.adobe.com/message/2092443#2092443 , this is 2 years old. This guy has inserted the text into PDF document.
I refered this link and try to insert a text in Active PDF document but text is not getting inserted into it.
Please let me know what i am making wrong in the below function,
static void InsertCitationText(PDDoc activePDDoc, int pgNum , int pgOffset)
      PDEContent volatile pdecontent = NULL;
      PDPage pdPage = PDDocAcquirePage (activePDDoc, pgNum);
      pdecontent = PDPageAcquirePDEContent (pdPage, gExtensionID);
      PDEText pdeText = TextCreate();
      PDEContentAddElem(pdecontent, kPDEAfterLast, (reinterpret_cast<PDEElement>(pdeText)));
      /* Put the contents back in the page */
      PDPageSetPDEContent(pdPage, gExtensionID);
      /* Clean up */
      PDPageReleasePDEContent(pdPage, gExtensionID);
TextCreate() function is same as the one which i mentioned in this discussion. Please let me what i am making wrong in that function aswell. Its not creating the specified "World" pdeText. Please help me out for this. Thanks in advance.
Regards,
Chetan.

Similar Messages

  • Insert Text in a PDF Document

    I am trying to edit text (insert text) in a pdf document using Adobe 9 Pro.  When I click on Advanced Editing, touch up text tool.  I select a box around the text and begin to type, nothing appears the cursor moves but nothing is typed.  I need immediate help .

    Editing text and Adding text require different tools.
    The Touch up text tool would be used to modify; add, modify or delete within a line of existing text.
    To add text to an open area, the Typewriter tool would be necessary.
    Don't expect full editing abilities.

  • Inbound document not able to created from an outbound message EDI

    Dear all,
    Our inbound delivery was not able to create automatically during GI for an outbound delivery. Our inbound delivery is created via an EDI output type in the header of the outbound delivery as soon as the GI is posted.
    All along, all the inbound docs are able to generate. However, for this particular outbound document, which has already GI, does not trigger the inbound document creation, and I notice that the output type message having a red light status in the message output.
    When I checked the error processing log on this output message type (i.e. the red status), error message said
    No goods receiving point for the combination of plant 1120 and stor.loc.
    Message no. VL377
    Diagnosis
    No goods receiving point could be found for plant 1120 and storage location  for the inbound delivery item. The delivery should still take place for the goods receiving point .
    System Response
    The system does not permit creation of and/or changes to the inbound delivery item.
    Procedure for System Administration
    Check your settings in Customizing for Determining the goods receiving point.
    The funny thing is I check the SPRO setup (i.e. Assign Goods Receiving Points for Inbound Deliveries), and I notice that the goods receipt point has been assigned and configured. Further, other Delivery Order which is having the same data, does not generate such error in the  message output, and the inbound is able to create.
    WHy?
    thanks.
    Edited by: tuffy on May 12, 2011 12:04 PM

    Hi Sudhir,
    This is a production thus, I don't want to save the inbound delivery, but it seem no problem of creating it, I will have the business create it.
    So, how do i debug the idoc?
    at first how do I find the idoc number of the failed transaction as when i go to the output message (i.e. in DO header) and check the processing log, system said..
    Object 0082658402 (i.e. DO number)
    output type: Stk Transfe Crte Deliv
    Processing log for program /spe/sto_id_processing
    no goods receiving point for the combination of plant 1120 and stor loc
    no inbound delivery create for the replenishment order
    There is IDOC no for this faild message (though GI is incurs)?
    thanks.

  • Hi I've a big problem with adobe acrobat reader XI pro and I hope you can help me. The problem is; when I past copied text from some pdf books (not all of them) it past symbols only! wherever I past it! and even if I coped that text from another pdf reade

    Hi
    I've a big problem with adobe acrobat reader XI pro and I hope you can help me.
    The problem is; when I past copied text from some pdf books (not all of them) it past symbols only! wherever I past it! and even if I coped that text from another pdf reader (adobe pdf reader, internet browsers, ...etc.).
    This problem started to happen since yesterday when I installed adobe acrobat reader XI pro to try it before I buy it, and before that when I was using the free adobe pdf reader I was totally able to copy any text from any pdf and past it anywhere with nothing wrong.
    What can I do?
    thank you a lot.

    There is no product called Adobe Acrobat Reader Pro. There is
    - Adobe Acrobat Pro ($$)
    - Adobe Reader (free)
    Which do you have? And are you a programmer?

  • How do i disable copy and paste so a reader can not copy text from my pdf document?

    how do i disable copy and paste so a reader can not copy text from my pdf document? i have gone into my security preferences but can not find out how to change the settings so i can disable the copying option.

    See http://www.adobe.com/content/dam/Adobe/en/products/acrobat/pdfs/adobe-acrobat-xi-protect-p df-file-with-permissions-tutorial-ue.pdf

  • How can I copy text from a PDF document in bb pbk?

    I've tried to copy a text from a PDF document but adobe reader doesn't give me that option. How can I do it? or there is a better reader for PDF that allows to copy, make bookmarks, to highlights?

    If the PDF is not an IMAGE, you can using a free program called PDF-XChange Viewer from Tracker Software. If the PDF was done as an image then you will not be able to select the text.
    Bold 9000 on Rogers Network - Company BES
    Playbook 16G WiFi Only

  • No text displayed in PDF Document

    Hi @all,
    I want to download a PDF-Form to my local machine.
    Approach:
    - CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    - CALL FUNCTION 'FP_JOB_OPEN'
    - CALL FUNCTION h_funcname
    - CALL FUNCTION 'FP_JOB_CLOSE'
    - CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    - CALL METHOD cl_gui_frontend_services=>gui_download
    I just inserted a static text in the PDF Document (Font: ARIAL).
    Adobe Document Designer shows this text on the preview tab but
    the downloaded PDF Document is empty.
    Only the graphical elements like circles are displayed but no text.
    System-Details:
    SAP ERP Central Component 5.0
    Release 640 Non-Unicode
    Adobe Designer Version 6.0
    Do you have any ideas?
    I just found the note 715599 but this refers to UNICODE Systems.
    Thanks.

    Hi,
    thanks for you answer.
    But the document only describes the conversion of SAP Script into PDF file.
    The OTF output of the SAP Script is converted to PDF by using the function module CONVERT_OTF.
    Do I have any other possibilities to access and download the PDF Document without using SAP Script?
    I already created the PDF Interface and PDF Form by using the "Form Builder" (Transaction SFP).
    My program shall access and download this Form.
    This works almost but all of the text information is obviously lost. All of the graphical information is displayed in the downloaded document.
    Thank you for you help.
    Christian Nitschka

  • How to insert text in current Pdf?

    I try to insert text into current pdf i am getting unexepected error
        PDEContent pdeContent;
        AVDoc avDoc = AVAppGetActiveDoc();
        PDDoc pdDoc = AVDocGetPDDoc (avDoc);
        PDPage pdPage = PDDocAcquirePage(pdDoc,AVPageViewGetPageNum(AVDocGetPageView(AVAppGetActiveDoc())));
        pdeContent = PDPageAcquirePDEContent(pdPage, NULL);
        //Create a PDEText object
        PDEText pdeText = PDETextCreate();
      //  Create a DEGraphicState object and set its attributes
        ASFixedMatrix textMatrix;
        //Create an ASFixedMatrix object
        memset(&textMatrix, 0, sizeof(textMatrix)); /* Set the buffer size */
        textMatrix.a = Int16ToFixed(24); /* Set font width and height */
        textMatrix.d = Int16ToFixed(24); /* to 24 point size */
        textMatrix.h = Int16ToFixed(1*72); /* x,y coordinate on page */
        textMatrix.v = Int16ToFixed(2*72); /* in this case, 1" x 2" */
        PDEGraphicState gState;
        PDEColorSpace pdeColorSpace = PDEColorSpaceCreateFromName(ASAtomFromString(colour_space.c_str()));
        memset(&gState, 0, sizeof(PDEGraphicState));
        gState.strokeColorSpec.space = gState.fillColorSpec.space = pdeColorSpace;
        gState.miterLimit = fixedTen;
        gState.flatness = fixedOne;
        gState.lineWidth = fixedOne;
        PDSysFont sysFont;
        PDEFont pdeFont;
        PDEFontAttrs pdeFontAttrs;
        //Set the size of the PDSysFont and set its attributes
        memset(&pdeFontAttrs, 0, sizeof(pdeFontAttrs));
        pdeFontAttrs.name = ASAtomFromString("CourierStd");
        pdeFontAttrs.type = ASAtomFromString("Type1");
        //Get system font
        sysFont = PDFindSysFont(&pdeFontAttrs, sizeof(PDEFontAttrs), 0);
        //Create a font that is used to draw text on a page
        pdeFont = PDEFontCreateFromSysFont(sysFont, kPDEFontDoNotEmbed);
        char *chrNewFilePath = "Doc.pdf";
        ASText  asFilePath =  ASTextFromUnicode(reinterpret_cast <ASUTF16Val *> (chrNewFilePath), kUTF8);
        //Create a character pointer
        char *HelloWorldStr = "Hello There";
        //Create new text run
        PDETextAdd(pdeText, //Text container to add to
                   kPDETextRun, // kPDETextRun
                   0, // in
                   (unsigned char*)HelloWorldStr, // Text to add
                   strlen(HelloWorldStr),// Length of text
                   pdeFont, // Font to apply to text
                   &gState, //Address of PDEGraphicState object
                   sizeof(gState), //Size of graphic state to apply to text
                   NULL,
                   0,
                   &textMatrix, //Transformation matrix for text
                   NULL); //Stroke matrix
        ::free(chrNewFilePath);
        ASFileSys  asFileSys =  ASGetDefaultFileSysForPath(ASAtomFromString( "ASTextPath" ), asFilePath);
        ASPathName asNewPath =  ASFileSysCreatePathName(asFileSys,  ASAtomFromString( "ASTextPath" ), asFilePath, 0);
        PDDocSave(pdDoc, PDSaveFull , asNewPath , asFileSys, NULL, NULL);

    I changed that code to below mention code, when i was run the plugin and after close the acrobat it asking for save, but it doesn't show any text text
    ASFixedRect  cropBox;
        char  errorMsg[256];
        ASInt32  errorCode = 0;
        PDPageGetCropBox  (pdPage, &cropBox);
        // Initialize the font descriptor then create the font reference.
        // Because we're using one of the base 14 Type 1 fonts, we only
        // need to pass a small amount of information to PDEFontCreate().
        PDEFont  pdeFont =  NULL;
        PDEFontAttrs  pdeFontAttrs;
        memset(&pdeFontAttrs, 0,  sizeof (pdeFontAttrs));
        pdeFontAttrs.name  =  ASAtomFromString( "Courier" );
        pdeFontAttrs.type  =  ASAtomFromString( "Type1" );
        DURING
        // Create the font reference.
        pdeFont =  PDEFontCreate(&pdeFontAttrs, sizeof (pdeFontAttrs), 0, 255, 0, 0,  ASAtomNull, 0, 0, 0, 0);
        HANDLER
        ASGetErrorString  (ASGetExceptionErrorCode(), errorMsg, 256);
        AVAlertNote  (errorMsg);
        return   NULL;
        END_HANDLER
        PDEColorSpace  pdeColorSpace =  PDEColorSpaceCreateFromName(ASAtomFromString( "DeviceGray" ));
        PDEGraphicState  gState;
        ASFixedMatrix  textMatrix;
        // The graphics state controls the various style properties of the text
        // including color, weight, and so forth.
        memset (&gState, 0,  sizeof (PDEGraphicState));
        gState.strokeColorSpec.space  = gState.fillColorSpec.space  = pdeColorSpace;
        gState.miterLimit  =  fixedTen;
        gState.flatness  =  fixedOne;
        gState.lineWidth  =  fixedOne;
        // Fill out the text matrix, which determines the point
        // size of the text and where it will is drawn on the page.
        memset (&textMatrix, 0,  sizeof (textMatrix));
        textMatrix.a  =  ASInt16ToFixed(12);
        textMatrix.d  =  ASInt16ToFixed(12);
        textMatrix.h  = cropBox.left  + (cropBox.right  - cropBox.left)/2 -  fixedSeventyTwo;
        textMatrix.v  = cropBox.top  - (cropBox.top  - cropBox.bottom)/2 -  fixedThirtyTwo;
        PDEText   volatile  pdeText =  NULL;
        DURING
        // Create a new PDEText element and add a kPDETextRun object to it.
        pdeText =  PDETextCreate();
        PDETextAdd  (pdeText,  kPDETextRun, 0, (Uns8  *) "This page intentionally blank" , 30,
                     pdeFont, &gState,  sizeof (gState),  NULL, 0, &textMatrix,  NULL);
        // Insert text element into page content.
        PDEContentAddElem  (pdeContent,  kPDEAfterLast, (PDEElement)pdeText);
        // Commit the changes to the PDEContent.
        PDPageSetPDEContent(pdPage, gExtensionID);
        // Advertise that we changed the contents so the viewer redraws the
        // page and other clients can re-acquire the page contents if needed.
        PDPageNotifyContentsDidChange  (pdPage);
        HANDLER
        // Store the error code.
        errorCode = ASGetExceptionErrorCode();
        END_HANDLER
        // Release any objects we may have created or acquired.
        // Note : PDERelease correctly handles NULL, so we don't
        // need to test for valid objects.
        PDERelease  ((PDEObject) pdeColorSpace);
        PDERelease  ((PDEObject) pdeFont);

  • Not able to create interactive pdf

    Hello everyone,
    I'm not able to create an offline pdf using exclusively ABAP. I tried using the tutorial "Offline Interactive Forms Using ABAP" but i'm missing something. I allready created the form using transaction SFP, and my ABAP program is like this:
    REPORT ztest_interactive_forms.
    DATA: wa_lfa1 LIKE lfa1.
    DATA: fm_name TYPE funcname.
    DATA: fp_outputparams TYPE sfpoutputparams.
    DATA: fp_docparams TYPE sfpdocparams.
    DATA: fp_formoutput TYPE fpformoutput.
    PARAMETERS: p_lifnr LIKE lfa1-lifnr.
    START-OF-SELECTION.
    SELECT SINGLE lifnr name1 name2 ort01 FROM lfa1 INTO CORRESPONDING FIELDS OF wa_lfa1 WHERE lifnr = p_lifnr.
    first get name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
    i_name = 'ZTEST_NCS'
    IMPORTING
    e_funcname = fm_name.
    Set output parameters and open spool job
    fp_outputparams-nodialog = 'X'. " suppress printer dialog popup
    fp_outputparams-getpdf = 'X'. " launch print preview
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = fp_outputparams
    EXCEPTIONS
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    OTHERS = 5.
    Set form language and country (->form locale)
    fp_docparams-langu = 'E'.
    fp_docparams-country = 'US'.
    fp_docparams-fillable = 'X'.
    Now call the generated function module
    CALL FUNCTION fm_name
    EXPORTING
    /1bcdwb/docparams = fp_docparams
    vendor_data = wa_lfa1
    IMPORTING
    /1bcdwb/formoutput = fp_formoutput
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    Close spool job
    CALL FUNCTION 'FP_JOB_CLOSE'
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    When function module "fm_name" is called, variable fp_formoutput is returned blank (0 pages).
    Can anyone help or suggest something ?
    Thank you in advance,
    Nuno Santos

    Hi,
    The default export parameter is /1bcdwb/formoutput of type
    fpformoutput. This parameter has to be evaluated in the calling program if the
    resulting document needs to be handled by the program itself. Export parameters
    can be added only for those interfaces that are compatible with Smart Forms.
    There is also only one standard exporting parameter of the form's generated
    function module: /1bcdwb/formoutput of type fpformoutput. It contains three
    fields:
    . pdf: Contains the PDF data in hexadecimal form if parameter getpdf of
    function module FP_JOB_OPEN is set to 'X'. This is required if your
    program has a download functionality or if you want to pass on your PDF to
    Business Communication Service to fax or e-mail it.
    Detail information on Business Communication Service can be found in the
    SAP Library, Topic .Generic Business Tools for Application Developers
    (BC-SRV-GBT).. See also standard demo reports BCS_EXAMPLE_...
    . pdl: contains the PDL data in hexadecimal form if parameter getpdl of
    function module FP_JOB_OPEN is set to 'X'.
    . pages: returns the number of pages that have been printed.
    There is also only one standard exporting parameter of the form's generated
    function module: /1bcdwb/formoutput of type fpformoutput. It contains three
    fields:
    . pdf: Contains the PDF data in hexadecimal form if parameter getpdf of
    function module FP_JOB_OPEN is set to 'X'. This is required if your
    program has a download functionality or if you want to pass on your PDF to
    Business Communication Service to fax or e-mail it.
    Detail information on Business Communication Service can be found in the
    SAP Library, Topic .Generic Business Tools for Application Developers
    (BC-SRV-GBT).. See also standard demo reports BCS_EXAMPLE_...
    . pdl: contains the PDL data in hexadecimal form if parameter getpdl of
    function module FP_JOB_OPEN is set to 'X'.
    . pages: returns the number of pages that have been printed.
    Note:
    . getpdf: If set to 'X', the /1bcdwb/formoutput-pdf field of the form's generated
    function module will contain the PDF data in hexadecimal form. This is
    helpful for further processing the PDF file. A preview will not be possible if
    getpdf = 'X'
    Hope this will be helpfull.
    Regards
    Adil
    Edited by: Syed  Abdul Adil on Jun 17, 2008 4:23 PM
    Edited by: Syed  Abdul Adil on Jun 17, 2008 4:24 PM

  • Lion Preview can't delete or insert pages to a PDF document

    I have the following problem: I open a PDF file in preview. I delete some pages as I used to in snow leopard. Then I save it. The document's page count changes to the correct number in the window title bar. However, if I open the saved version after closing the current window I see that nothing is saved at all! The same thing happens when I try to insert pages to a PDF document. Looks like everything is fine, but when I close and reopen the document no changes are saved. The weird thing is file is modified, i.e. preview saves something but not my changes. It just re-saves the original document.

    NUMACER's answer worked for me as well guys ! Didn't need to save a version, it just keeps it like that. I tried saving a version which saved on the same file instead of creating a new one (i know that since I saw the "Last modified" thing being updated at the same time) !
    Thanks Numacer

  • Password protected PDF document not opened with E7...

    Dear all,
    Password protected PDF document not opened with nokia E7-00. Previously I used nokia N79, that time I was able to open Password protected PDF file such as bank email statement etc. Now I can't.
    It is quite disappointing with this phone !

    hi mateys,
    you may want to search under "PDF" in the Nokia Store, as some solutions such as Picsel Smart Office exist, where they do open password-protected PDF's.

  • Using 10.6.8, internet pdf documents not opening using Adobe Reader; how is this corrected?

    Using 10.6.8, internet pdf documents not opening using Adobe Reader; how is this corrected?  I've tried changing "sharing and permissions" to "read and write" as suggested on other help sites, but this did not correct the problem.

    I had the same problem---contacted Adobe and their service rep helped me by
    A.   Deleting  Adobe Reader from my iMac's Applications in Finder
    B.   Downloading Google Chrome browser and then
    C.   Downloading the latest Adobe Reader for Mac 10.6.8 in Google Chrome--it works
    Adobe acknowledges problem with the latest Snow Leopard update 10.6.8 and with this work around, I can open PDF's using the Google Chrome Browser.
    Is this the ideal solution---NO.  Safari is my main browser. I now have to use a separate browser for PDF's.
    Am I happy to be able to open PDF's---YES
    You can't believe the time I spent to solve this problem before calling Adobe for help. My Apple Care policy expired a month ago . As I use Photoshop Elements, I was not charged by Adobe for their help on the telephone.

  • Not able to create a material document with movement type 103

    I am not able to create a material document with movement type 103,
    The system is populating the value as 101 .
    How do I create a matdoc with movement type 103?

    What is the error you receive? Please specify with message number.
    On MIGO, you need to change the default value mvmt type value to 103 before you enter the PO number to be able to do 103.
    Once this defualt value is set, you can enter the PO and item number in the document number fields and proceed with 103.
    But you cannot change the mvmt type for already entered items from 101-103 or vice versa.
    I think the 101-103 and 103-101 mvmt type conversion message is standard error message

  • Not able to create pdf

    Hello everyone,
    I'm not able to create an offline pdf using exclusively ABAP. I tried using the tutorial "Offline Interactive Forms Using ABAP" but i'm missing something. I allready created the form using transaction SFP, and my ABAP program is like this:
    REPORT  ztest_interactive_forms.
    DATA: wa_lfa1 LIKE lfa1.
    DATA: fm_name TYPE funcname.
    DATA: fp_outputparams TYPE sfpoutputparams.
    DATA: fp_docparams TYPE sfpdocparams.
    DATA: fp_formoutput TYPE fpformoutput.
    PARAMETERS: p_lifnr LIKE lfa1-lifnr.
    START-OF-SELECTION.
      SELECT SINGLE lifnr name1 name2 ort01 FROM lfa1 INTO CORRESPONDING FIELDS OF wa_lfa1 WHERE lifnr = p_lifnr.
    first get name of the generated function module
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = 'ZTEST_NCS'
        IMPORTING
          e_funcname = fm_name.
    Set output parameters and open spool job
      fp_outputparams-nodialog = 'X'. " suppress printer dialog popup
      fp_outputparams-getpdf = 'X'. " launch print preview
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = fp_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
    Set form language and country (->form locale)
      fp_docparams-langu = 'E'.
      fp_docparams-country = 'US'.
      fp_docparams-fillable = 'X'.
    Now call the generated function module
      CALL FUNCTION fm_name
        EXPORTING
          /1bcdwb/docparams  = fp_docparams
          vendor_data        = wa_lfa1
        IMPORTING
          /1bcdwb/formoutput = fp_formoutput
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.
    Close spool job
      CALL FUNCTION 'FP_JOB_CLOSE'
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
    When function module "fm_name" is called, variable fp_formoutput is returned blank (0 pages).
    Can anyone help or suggest something ?
                                  Thank you in advance,
                                         Nuno Santos

    Does this happen with all ID files or just some files? What OS? Try to create a one work ID file with Times New Roman and let the file contain a single word? Can you create a pdf?

  • Adobe Acrobat PDFs is not in my apps, how do I add it in 4.0

    Adobe Acrobat PDFs is not in my apps, how do I add it in 4.0

    See these links;
    -> Aldo on Audiobooks
    -> How do I get my audiobook to appear in the Audiobooks menu on my iPod?

Maybe you are looking for

  • How to select rows in the inner JTable rendered in an outer JTable cell

    I have wrriten the following code for creating cell specific renderer - JTable rendered in a cell of a JTable. table=new JTable(data,columnNames) public TableCellRenderer getCellRenderer(int row, int column) if ((row == 0) && (column == 0)) return ne

  • Mac computer won't read burned discs, need help...

    Heya, So I'm not sure when this started happening exactly, but my Mac stopped being able to read burned discs for some reason. I've tried discs that have audio (legal MP3's) and applications on them (also legal copies of the discs) and they show up i

  • When I connect my shuffle to ITunes, the SOURCE category doesn't show up!

    HELP! My shuffle (bought it off of ebay two weeks ago) has been working fine. But today I ran into a problem. I plug it into Itunes, and no SOURCE category shows up. I can't even get the computer to recognize the device. Please make your response as

  • How to display dates in half-months?

    How can I display dates in half-months from dim_date table? like shown below: Assume that 8/14/2012 is current date.. 07/15 - 07/30 - no. of opties created between those dates 07/01 - 07/14 - no. of opties created 06/15 - 06/30 - ... 06/01- 06/14 - .

  • Noise Partially Comes Back in Library View & Exports

    Ok I have a very strange thing happening in LR3.  When I select a very noisy image in my library and take it into develop mode, convert it to 2010 calibration and make the adjustments to noise it looks spectacular.  But when I click to go back to Lib