Document Data

Hi,
where is the Text information stored in a DefaultStyled Document? There is an AttributeSet in each Element for the Attribute Information but no data Field for the Text Content? In AbstractDocument there is a field "data" which is of Type "Content". But i couldn't find an Implementation of the "Content"-Interface?
thx

What you need to do is get the elements "offset" and "length" then pull the text directly from the document using these values, associate the text with the attribute set for the actual element.

Similar Messages

  • Calculating local currency based on document date in goods receipt

    We have a requirement in Poland that the local currency PLN should be calculated based on the document date when doing goods receipt, and not standard SAP posting date. I can only find note 619330 according to this requirement, but this note requires use of material ledger which we are not using. We have implemented note 574583 for the same requirement in transaction MIRO.
    Since there are no notes from SAP according to the requirement in transaction MIGO, are there any enhancements available for using the document date instead for posting date when calculating local currency?
    Best regards,
    Terje

    substitution used

  • I dont see 'documents & data' in settings

    Why cant i see 'documents & data' in the settings in iPhone? Im trying to backup whatsapp but i have to turn on documents & data first but i don't see it in settings/iCloud

    This is in my settings. No documents & data

  • Problem with material and document date in sales order

    Hi All,
    I am working in ECC 6.0 .I am facing problem with two fields when in enter in to sales order(tcode:va01)
    1.A material comes automatically in line item.
    2.Document date also comes as 27.03.2008 instead of todays date in each order i create.
    I think its not related to configuration.I think its related to some modifications through exits or enhancement points.could someone suggest me a where to check and solve that.
    Your's suggestion is appreciated.

    Hi Sharad,
    Check MV45AFZZ include in se38..It is a user exit for basic validation on sales...We may be able to find some code there (if screen data is predefined by code as mentioned)
    Hope it helps
    Regards
    Byju

  • Regarding : Material document data and PO data do not match (Plant)

    Hi Gurus,
    Please go through this BAPI program.
    While uploading it is giving an error ' Material document data and PO data do not match (Plant) '.
    Please help regarding this issue.For all Other moment types it is working fine except this 351 moment type.
    dATA: i_excel TYPE truxs_t_text_data. "work table for excel upload
    DATA: BEGIN OF it_itab OCCURS 100,
          docdate(10),
          postdate(10),
          mvt_type(3), "Movement Type
          plant(4), "Plant
          lgort(4),
          pur_doc(10), "Purchase Document No
          po_item(3), "Purchase Document Item No
          material(18), "Material Number
         delnote(16),
          erfmg(13),
          uom(3),
         lfmng(13), "Quantity
          batch(10) TYPE c,
          vfdat TYPE vfdat,
          END OF it_itab.
    DATA: it_goodsmvt_head TYPE TABLE OF bapi2017_gm_head_01      INITIAL SIZE 100,
          it_goodsmvt_code TYPE TABLE OF bapi2017_gm_code         INITIAL SIZE 100,
          it_goodsmvt_item TYPE TABLE OF bapi2017_gm_item_create  INITIAL SIZE 100.
    DATA: wa_goodsmvt_head LIKE LINE OF it_goodsmvt_head,
          wa_goodsmvt_code LIKE LINE OF it_goodsmvt_code,
          wa_goodsmvt_item LIKE LINE OF it_goodsmvt_item.
    DATA: w_mat_doc  TYPE bapi2017_gm_head_ret-mat_doc,
          w_year     TYPE bapi2017_gm_head_ret-doc_year.
    DATA: BEGIN OF it_errmsg_goodsmvt OCCURS 10.
            INCLUDE STRUCTURE bapiret2.
    DATA: END OF it_errmsg_goodsmvt.
    DATA : obj_type LIKE bapiache09-obj_type,
           obj_key  LIKE bapiache09-obj_key,
           obj_sys  LIKE bapiache09-obj_sys.
    DATA: v_date1 TYPE sy-datum.
    DATA: v_date2 TYPE sy-datum.
    DATA: w_lines TYPE i.
    DATA: errflag.
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-100.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK bk1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    Start-of-selection processing
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_line_header        = 'X'
          i_tab_raw_data       = i_excel
          i_filename           = p_file
        TABLES
          i_tab_converted_data = it_itab[]
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT it_itab.
        REFRESH it_goodsmvt_head.
        REFRESH it_goodsmvt_item.
        CONCATENATE it_itab-docdate6(4) it_itab-docdate3(2) it_itab-docdate+0(2) INTO v_date1.
        CONCATENATE it_itab-postdate6(4) it_itab-postdate3(2) it_itab-postdate+0(2) INTO v_date2.
        wa_goodsmvt_head-pstng_date = v_date2.
        wa_goodsmvt_head-doc_date   = v_date1.
       wa_goodsmvt_head-ref_doc_no = it_itab-delnote.
    wa_goodsmvt_head-pr_uname   = sy-uname.
        APPEND wa_goodsmvt_head TO it_goodsmvt_head.
    Maintain it_goodsmvt_code
        wa_goodsmvt_code-gm_code    = '04'.
    Maintain it_goodsmvt_item
    *LOOP AT it_itab.
    IF wa_goodsmvt_item-po_number IS INITIAL.
        wa_goodsmvt_item-po_number    = it_itab-pur_doc.
        wa_goodsmvt_item-move_type    = it_itab-mvt_type.
        wa_goodsmvt_item-MOVE_PLANT      = it_itab-plant.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = it_itab-material
          IMPORTING
            output = it_itab-material.
        wa_goodsmvt_item-material     = it_itab-material.
        wa_goodsmvt_item-stge_loc     = it_itab-lgort.
        wa_goodsmvt_item-po_item      = it_itab-po_item.
        wa_goodsmvt_item-entry_qnt    = it_itab-erfmg.
        wa_goodsmvt_item-ENTRY_UOM_ISO    = it_itab-uom.
       wa_goodsmvt_item-po_pr_qnt    = it_itab-lfmng.
        wa_goodsmvt_item-batch        = it_itab-batch.
        wa_goodsmvt_item-expirydate   = it_itab-vfdat.
       wa_goodsmvt_item-NO_MORE_GR   = 'X'.
        wa_goodsmvt_item-mvt_ind      = 'B'.
        APPEND wa_goodsmvt_item TO it_goodsmvt_item.
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            goodsmvt_header  = wa_goodsmvt_head
            goodsmvt_code    = wa_goodsmvt_code
          IMPORTING
            materialdocument = w_mat_doc
          TABLES
            goodsmvt_item    = it_goodsmvt_item
            return           = it_errmsg_goodsmvt.
    Process of commit work
        IF it_goodsmvt_head[] IS NOT INITIAL.
          DESCRIBE TABLE it_goodsmvt_head LINES w_lines.
        ENDIF.
        IF it_goodsmvt_item[] IS NOT INITIAL.
          DESCRIBE TABLE it_goodsmvt_item LINES w_lines.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              wait = 'X'.
        IMPORTING
        RETURN        =
          CLEAR errflag.
          READ TABLE it_errmsg_goodsmvt INDEX 1.
          IF it_errmsg_goodsmvt-type EQ 'E'.
            WRITE:/'Error in function', it_errmsg_goodsmvt-message.
            errflag = 'X'.
          ELSE.
            WRITE:/ it_errmsg_goodsmvt-message.
          ENDIF.
          IF errflag IS INITIAL.
            COMMIT WORK AND WAIT.
            IF sy-subrc NE 0.
              WRITE:/ 'Error in updating'.
              EXIT.
            ELSE.
              WRITE:/ 'Material Document created successfully and the Document Number for the Material',
                      wa_goodsmvt_item-material,'is:', w_mat_doc, w_year.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.

    Hey,
    Just wanted to post that in my case this was the error of MVT_IND field in item table. When I made it from 'B' to blank then it worked.
    Mine is solved....
    Thanks

  • Open items yet to be cleared which have 2-3 years old document date

    Sap Experts,
    This is my first post and would like to ask for a help .
    I would like to clear all the open items which have Zero balance and belongs to Fiscal year 2007, 2008, 2009, 2010.
    In F-04 T.code, When I put the document date, it does not allow me to clear it.
    Please give me the best solution you think of any other alternative which is right or please provide me with steps to clear by using F-04
    Your help will be greatly appreciated.
    Kind regards
    LSD

    Thanks Atif & Sanil for your quick reply,
    But the problem is when I enter the GL account, it is giving me error, stating that "there are no open items managed in Account XXXXXXXXXX". I have checked the control data in FS00 and only Line item Display is ticked.
    I have recently joined this place, and the items are open from the day SAP was implemented. So they do not use Auto clearing.
    Some points I am thinking below,
    Q1. Does it mean that the control data must have open item to be "ticked"?
    Q2. The A/c i am trying to clear is Non-current Trade receivables, so can we clear such accounts.
    In terms of Clearing the data from 2007 till date,
    Q3. Do I have to open the old periods or can I clear in current period.
    Further info will be very helpful.
    Cheers

  • Running Aging reports based on Document date in 2007

    Hi All,
    I have an issue while running the Receivables aging report in the 2007 version. The customer usually runs the reports based on the document date. Document date holds more importance in their case.
    However, in the 2007 version, the aging report is totally governed by the posting date. For example, if I change the aging date, the posting date also changes to the aging date and viceversa. If I want to change the aging date to 01/31/09, the posting date u2018Tou2019 automatically changes to 01/31/09 and when we run the report, it will bring in all transactions until the posting date of 01/31/09.
    But, the requirement is to leave the posting date as blank and give the document date u2018Tou2019 01/31/09. This will then pull all transactions until the document date of 01/31/09 irrespective of the posting date.
    As a result, when you run the balance sheet with the document date of 01/31/09, receivables show a different balance. This discrepancy is due to the fact that AR Receivable aging report forces to keep the Aging date = Posting date.
    This was not the case in SAP 2005 version where we were allowed to key in the aging date and the document date to get results based on document date.
    This is very critical as they have recently upgraded from 2005 to 2007 and they are unable to reconcile the balances out of Balance sheet and Aging.
    Please advise.
    Thanks,
    Payal

    Hi Jitin,
    We tried that as well but no luck. There is still a discrepency between what the aging shows and what the BS shows. When we put the Aging date as 01/31/09 and Document date as 01/3109, the posting date 'To' is automatically filled with 01/31/09, so it basically searches for all transactions with the posting date 01/31/09 and document date 01/31/09. This is not the requirement as we do not want to consider the posting date at all while running the aging.
    I also have some screenshots if I can share. I am not sure if I should report this to SAP for further investigation or am I missing something here.
    Thanks for your help.
    Regards,
    Payal
    Edited by: Rui Pereira on May 1, 2009 10:48 AM

  • "Documents & Data" no longer working as expected

    I've been using the "Documents & Data" feature in iCloud to great satisfaction - until now. After upgrading to OS X 10.10 and IO8.1, I'm not so happy anymore. It looks like a bug to me, but would  like others to comment on it.
    First of all iCloud Drive is not enabled and is not an option for the time being due to lack of support in iPhoto 9.6.
    As stated I use "Documents & Data" to share documents between by Mac and 2 iPads. And it's been working fine until the upgrade.
    If I create a new spreadsheet on one iPad it's available on the other, but not on the Mac.
    When I enter System Preferences/iCloud and select "Manage..." and then "Numbers" the spreadsheet created on the iPad is listed, but is not available when I do a File/Open in Numbers on the Mac.
    Comments please.
    PS If I create a new spreadsheet on the Mac and save it in iCloud, it's only available for the Mac, not the iPads.

    By browsing through several Apple "forums" I found that: If you've decided NOT to upgrade to iCloud Drive you can still share documents between IOS8 devices but NOT with MACs running OS X Yosemite. So I guess it's "working as designed", but if I may add: "Bad designed".

  • A/P invoice Document Date

    Hello, I just need some clarification on what the difference is between a posting date and a document date on an a/p invoice?
    I'm guessing the posting date is the date of which the client enters the document into the system
    Is the document date the date of the actual invoice itself?
    Thanks,
    Jason

    Hi,
    Posting Date
    Specify the posting date when user enter the data into the SAP B1.
    Document Date
    Date of the document for tax reporting purposes. By default, it is the same as the posting date. You can change it manually, if required.
    Regrads.
    Kamlesh Naware

  • Document date is earlier than acquisition date for asset

    Client has an asset which they want to post an acquistion for as of 1/1/2011. They are in December of 2011. They first put an acquisition in with 12/31/2011 and then cancelled it, realizing they needed a docdate of 1/1/2011. When they try to redo the acquisition with a docdate of 1/1/2011 they get the error "Document date is earlier than acquisition date for asset xxxxx"
    The capitalization date on the asset is 1/1/2011. I looked at the acquisition date (thorugh SQL) and it is "1899-12-30 00:00:00.000"
    Does anyone know why it is preventing from posting?
    (Posting dates allowed are 1/1/11-12/31/11 for period 12 of 2011 and the period is unlocked)
    Alan

    Hi
    I do believe that the problem is in the capitalization date 12/31/2011
    Even if you have cancellled the first acqusition , and the acquisition date has taken the dummy date that assets have when there are no acqusitions 1899-12-30 00:00:00.000
    Still the capitalization date remains 12/31/2011
    and this will deter any transactions earlier than 12/31/2011
    My question is,
    can you still edit the field capitalization date?
    Jose Antonio Castillo

  • PO document date to be grey field while creating PO

    Hi,
    As per customer requirement, We need to display the PO document date in grey field. So that user cant edit at time of PO creation.
    Any configuration changes available for change PO document date in display mode.
    Note: I have checked in IMG->MM->PO->Define screen layout. But no field available for PO document date.
    Kindly suggest
    Thanks in advance
    regards
    Hemachandran

    Hi,
    Go to SHD0 and create aTransaction Variant of transaction code ME21N as ZME21N and mark PO Date field as Display.
    For details on Transaction variant, refer following link;
    [Step By Step Guide - Creating Transaction Variants|http://www.mhn-consulting.com/Security/transactionvariants.htm]

  • Status 51 material document data and po data do not match(vendor)

    i am using we19 to try an inbound idoc mbgmcr(receipt for po)
    i put in gm_code 01
    movement indicator B(goods receipt for po)
    vendor 3815
    PO 4500015241
    PO Order Item 00030
    Movement type 101
    qty in unit of entry  1
    iso code unit of measurement pc
    on the po screen i see the po item and qty to be delivered is 75
    when i run the inbound idoc i get
    status 51 material document data and po data do not match(vendor) but as i say on the po inquiry screen i see the po vendor item with 75 to be delivered
    what am i missing????????????????

    thank you
    i put in the leading zeros and got rid of that problem
    now i am getting status 51
    posting only possible in 2004/07 and 2004/06
    but in the posting date i use 07/02/2004  i have tried several dates in the period but get the same error
    any ideas?
    thanks you

  • Approval for Contract and Order based on PO date and Document Date Combinat

    Dear All,
        I have a critical requirement from my client.
    1. If the PO date in the contract is less than 10 days or more of the document date [Created date] then further process should not be allowed. Only authorized person should release the contract, and then order creation should be possible.
    For example: Customer PO date is 18-07-2011 and if the document date is 28-08-2011, then system should stop for further processing. Only after release this should be allowed to proceed.
    2. Sales order scheduled date for item is 30.07.2011 and if the PO date is 18.07.2011 again system should again go for approval. Business requires this because the time gap between the PO date and the delivery date is very short, so only on approval the next process should be allowed.
    Is this possible through Status profile? I have tried this but I canu2019t give condition like if it less than the PO date system should go for approval.
    Kindly guide me if this is possible and share your ideas.
    Best Regards,
    Venugopal

    Hi Venu,
           In user eixt USEREXIT_MOVE_FIELD_TO_VBAP (inlcude MV45AFZZ) write the code to compare the PO date and contract creatioon date and if the PO date is 10days less than the contract creation date reject all the line items with a special reason for rejection at the item level if the document is a contract or if the document is a sales order then populate a delivery block.
    Regarding the authorization to release the contract you can think of below options.
    Give authorization to only specific people to remove the reason for rejection or  remove the delivery block.
    Or
    If you want to automate the approval process then based on the delivery block setup workflow which will raise an event and trigger an email to the approver inbox. For the approval you can give options like Approve/Reject. Based on the apporver's action design the workflow to change the contract accordingly i.e either removing the delivery block or keep it as it is.

  • Document Date

    SD Experts,
    We are trying to capture the document date from our legacy system on the invoice. This is necessary when we close the month and we have not posted invoices from the previous month. We want to post on the 1st day of current month we are doing this by changing the billing date in VF04 default data. However the original document date although we are capturing it in a customize table we would like to use this date as the document date in order to be able to reconcile with both systems. Does anyone knows how I can achieve this? Which field I can change in SD in order to capture this? We currently bill based on delivery, and goods issue. Right now the document date is the one of the goods issue date.
    In conclussion i would like to change the Billing Date FKDAT in VF04
    Any ideas will be appreciated....
    Edited by: Frank on Jun 10, 2009 11:20 PM

    Document date is nothing but "Created on" date (Field ERDAT) and you cannot manipulate this.  For example, if you are generating an invoice on 02-06-09 but manually keying in the billing date as 31-05-09, then in document flow you can see the date as 02-06-09 only against the billing document.
    thanks
    G. Lakshmipathi

  • Calculating local currency using document date

    Hi,
    In some company codes we had local currency calculated automatically by document date exch rate.
    After upgrading to ECC 6.0. this stopped working.
    I have gone through the settings in non upgraded system (5.0) and in the upgraded one and I cannot find anything.
    1) I do not want to set that in OB22. I want to have Translation date available and it should be prepopulated with document date instead of posting date. Can anyone help where to set this?
    2) Can anyone help how to make translation date field (e.g. in FB60) changeable? Now I have it greyed out in some company codes.
    Many thanks,
    Honza

    substitution used

  • Goods Receipt and Goods Issue - Posting Date and Document Date Problem

    Hi All,
    I was using SDK to build own add on to insert Posting Date and Document Date under Inventory> Inventory Transactions> Goods Receipt and  Inventory> Inventory Transactions> Goods Issue, but the UI Screen Posting Date and Document Date shown current date.
    My SAP Business One version was 2007A SP00 PL42 and alreadly upgrade to SP05.
    End up result still the same.
    Is there someone can help me?
    Thanks you.
    Best Regards,
    danny

    Hi there,
    I already solve it by myself.
    Actually is i call the initialization twice:
    Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    Thats what make this problem happened.
    Sorry.
    Best Regards,
    danny

Maybe you are looking for

  • RPC services on Solaris

    Hi all, does anybody know, if RPC services on Solaris 7 are required for a running WebLogic 5.1 instance? We would like to harden the server and I'm not sure about disabling the RPC services for security reasons. Regards Andreas

  • CHeck Special Characters

    Hi everybody, right now iam working on form CHek.let me need some info where can i get info of special characters which are in MICR format at bottom of chek). please let me know its very urgent. Thanks & reagrds.. Anil.T

  • Placing multicam shots from viewer to canvas?

    I've edited a multicam sequence and now need to use that exact sequence in another sequence BUT the error I'm getting is "Operation not allowed. You cannot nest sequences with different editing timebases."????? Please help. I've tried making a subcli

  • Retaining hyperlinks on export...?

    I've exported a full-size slideshow from Keynote to a "hyperlink only" QuickTime video (for those that don't know, that means the "slides" only advance when you click a link that tells the QuickTime to move to the next slide.) This is a great feature

  • How to disable lazy load CLR assembly in sqlserver?

    Hi, all: We are using 'CREATE ASSEMBLY' to have the sqlserver2008 loading the managed assemblies contains implementation of DB trigger, and everything works fine. While recently several issues reported that after the PC reboot, and our system starts