SAPbobsCOM.Documents.Lines.Text ReadOnly

I'm trying to do something like this
oSapInvoice.Lines.Text = oDocDett.Text
where oSapInvoice is a SAPbobsCOM.Documents, but the Text property is readonly.
How can I do to copy the column "Item Details" (Text property) in a document line using the SDK?

Dear Gianluca D'Alessandro,
Please try following code to add Item Details:
oSapInvoice.Lines.ItemDetails = oDocDett.Text
Best Regards
Jane Jing
SAP Business One Forums team

Similar Messages

  • SAPbobsCOM.Documents.Lines Delete/Remove

    Is it true that there is still no API to delete line items for Document objects? (I cannot find one in version 6.5)
    Does 2004 include this feature? Is there a workaround?
    Making the Price and Quantity zero is not an option for me.

    Same as My Problem We Cannot Force to Use Recordset. Because it is directly manipulate to the SBO SQl Server (even SAP Manage refuse to say that )
    John Mackin said that we can use dummy item. And I have tried that way. It works in header decoument summary (For Total Document,Sum Tax,etc) but in appearance users are dislike to see item that have no price and quantity in Documents Forms Matrix and off course  the cancelled item will be appeared in Report.
    ==========================================
    oOrder.Lines.SetCurrentLine (sFields(1))
                  oOrder.Remove
                  oOrder.Lines.ItemCode = "Cancelled"
                  oOrder.Lines.Price = "0"
                  oOrder.Lines.Quantity = "0"
                  oOrder.Lines.Currency = sFields(6)
                 lRetCode = oOrder.Update
                 If lRetCode <> 0 Then
                    Call oCompany.GetLastError(nErr, errMsg)
                    If (0 <> nErr) Then
                    SBOApplication.SetStatusBarMessage "Found error:" + Str(nErr) + "," + errMsg "
                    End If
    ==================================
    I dont know what to do , maybe we can wait from SAP Manage how to handle this problem.
    Cheers,
    Hamdi

  • Document Lines

    Hi Experts,
    Is there any way I could loop through a SAPbobsCOM.Document.Lines? If I'm going to post a oDraft delivery document to a oDelivery document.
    Thanks.

    Hello Roger
    For i as integer = 0 to oDoc.Lines.Count-1
      oDoc.Lines.SetCurrentLine(i)
    next i
    Regards
    János

  • Document line item text in Clearing document

    Dear All,
    Document line item text
    My client want the vendor invoice line item text(BSIK-SGTXT) to be captured in the corresponding clearing document line item text field(BSAK-SGTXT).
    (i.e) The vendor invoice and its payment clearing document should have the same text in the document line item text filed.
    According to me i can use  a substition rule and a user exit to assign the values. but here comes a problem* i have one clearing document against 3 to 4 vendor invoice documents* so my programming logic has got stucked here? like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here.
    Thank you
    Regards,
    Vasanth D

    like which vendor invoice line item text the clearing document should pick up?
    is there any other enhancements possible or can some one help me with the programming logic to be applied here
    Why don't you discuss the issue with your client?  As you said, if you pay 5 invoices in a single run, the payment document item text can't carry all of those texts unless you use the long text.  What is the reason for the requirement?  Perhaps there's another solution.

  • Tcode FV50: How to find long text in FI Document line item Before Saving.

    Hi,
    How to find long text in FI Document line item.
    During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
    I would like to validate the Long Text Before Saving in user exit "U300" under  the  "Sunstitution" .
    Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
    Please give me the answer as soon as possible .
    Note:- Read_Text function module is not useful. Because Read_text useful after saving document.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • How to read long text in Document line item

    Hi,
    How to read long text in FI Document line item.

    Use Read_text function module.
    you need to pass
    ID
    LANGUAGE
    NAME
    OBJECT   to the function moduel
    To find the Text id name language and object these are the following steps. Example: FB02
    1. goto FB02, Enter Document number
    2. from menuselect Goto>Header-->header Text..... New window will be displayed 
    3. select the Header Text. here you can see all the text. 
    4. click on the TEXT (which you want to know the Text id) , then press log ICON (you can find in bottom right of the text window) it looks like a rolled paper. 
    5. in the Next window you will find Text Name. Text ID, Language. etc...
    Regards,
    Lalit Mohan Gupta.

  • Remove symbol # for long text in document line item

    Dear Experts,
    I enter some information in the long text field in document line item. For the area that I use "Tab" button, system will display as # symbol. Therefore when we print the information, the output will include the #### symbol which is not correct.
    Please help.
    Thanks.
    -Syaban-

    Dear Gaurav Aggarwal,
    Thanks for the reply, can you guide me the step to perform the suggested solutions? currently, we are using ECC6.
    Thanks.
    syaban

  • PO item text is copied to the Financial Document line item text

    A user have requested that the PO item text is copied to the Financial
    document line item text, to aid them in analysis of the GR/IR account.
    is there any solution to implement this ?

    There is no standard setting for this requirement. Check with your ABAP team for this.

  • Post long text for document line item via FI-GL Inbound IDoc

    Hi guru,
    I am trying post extension ZFIDCP02 linked basic type FIDCCP02 and message type FIDCC2 IDoc in R/3 (4.6c) via IBM Websphere (Inbound IDoc),
    I am use inbound function module IDOC_INPUT_FIDCC2 and activate exit 008 (EXIT_SAPLF050_008) and exit 002 (EXIT_SAPLF050_002),
    In the extension ZFIDCP02 and under E1FISEG, I am add my segment  ZITEXT include field TDSPRAS, TDID, TDOBJECT, TDLINE.
    I am send  ZFIDCP02 IDoc via IBM Websphere no error  but all field TDSPRAS, TDID, TDOBJECT, TDLINE in my segment  ZITEXT not post in FI-GL.
    How can I  post long text for document line item (ZITEXT) in FI-GL ?.
    and I'm mean post ZITEXT to bank statement via IDOC.
    Please throw light on this  and  may be I  'm want solution or example ABAP code for exit 002 (EXIT_SAPLF050_002).
    Thanks in advance,
    Akkapong Pirachai
    CAT Telecom
    Edited by: Akkapong Pirachai on Aug 20, 2008 7:40 AM

    Close question because long time for answer.

  • Text in the document line item

    Hi,
    In COI, I am doing reclassification using document type.
    System has posting the documents correctly, but strange thing is in the document header text, it was giving some text by itself.
    Example of the actual text in the document header is as below:
    "3B586AF9C74AF958DC4EFAB080B180B6D2E90F25"
    Thanks in Advance,
    Richard

    Hi Dan,
    You are correct. The text is coming by itself while doing Reclassification for dividend at PL 30.
    Still confused why it is throwing some text in the document header..
    Regards,
    Richard

  • Permanently save line spacing in a multi-line text field

    Me: Adobe Acrobat 8 Pro, Windows Vista
    (I think the people who will be using the form have Reader 7 on Windows)
    I work in a doctors' clinic, and we use phone message sheets to document conversations between the patients/us/nurses/doctors, and I scanned the form and made it into a fillable PDF for our secretaries to fill out more quickly. The "message" area has pre-printed lines on it, and the multi-line text field I placed there needs to match up to the lines. I used the Rich Text Formatting options to set it to "Exactly 24 Points," but I can't get it to KEEP the formatting permanently. The only way I could get it to save the formatting in that field was to put a space in it and then save it, and then give that to the 2 phone secretaries. It works perfectly the first time, but instead of just closing/re-opening the file to start a new message, one of the secretaries highlights everything in the "message" field and deletes it... which deletes the line spacing formatting. I've told her
    b numerous
    times to leave that starting space in the field, but she "forgets" so all of her messages look messed up. So is there a way to force that line spacing
    b PERMANENTLY
    ???? Here's a shrunken screenshot of the field -- I wish I could just erase the lines altogether so the spacing wouldn't matter, but the secretaries type/print the message out, then the nurses/docs write on the page with pen so the lines have to stay. http://img187.imageshack.us/my.php?image=notepreviewph8.jpg
    Thanks!

    You can set the font size of the text. Then play with the underlines in the original document to match the needs of the font that is used. Print to a new PDF and then use replace pages to put the new page into the form without changing the form fields. I was able to do this with a word processing document by adding underlining in the document with 12 pt and setting the font to 12 pt in the text field. You can play with the font, the border of the field, and the underlining in the original document to get the desired result. Is this optimal, probably not. However it does the job.

  • Transfer document header text from billing document to FI document

    Dear all,
    Where do I specify that the document header text out of the billing document should be transferred to the corresponding FI document?
    Currently, the FI document header text (BKPF-BKTXT) remeans blank after transfer from billing document. We need this field to be filled in, but I haven't found how to have this filled in.
    In copy control from sales doc to billing doc, there is the possibility to transfer the Reference number & Assignment, but nothing about document header texts.
    Some say that it would only be possible via coding, but anybody has any idea if it might be possible via standard SAP?
    Many thanks!
    Best regards

    Hi,
    We also had a bit same requirement, which is to copy the billing header text to FI item text (BSEG-SGTXT). The solution we took is to use FI Substitution (t-code GGB1), so that every time a FI document created from SD... the substitution reads the billing header text and put it in the FI item text. I think the same method could be used for FI header text (BKPF-BKTXT). Below is the solution for your reference.
    Prerequisite:
    Document Type = 'RV' AND Reference <> '' AND
    ( Transaction code = 'VF01' OR Transaction code = 'VF02' OR
    Transaction code = 'VF03' )
    Substitution:
    Using exit which coding is as below.
    *&      Form  u900
          Copy Billing Header Text to SGTXT
         -->P_SGTXT    FI Item Text
    FORM u900 USING p_sgtxt TYPE bseg-sgtxt.
      DATA: lv_name TYPE thead-tdname,
            lt_line TYPE STANDARD TABLE OF tline,
            lw_line TYPE tline.
      lv_name = bkpf-xblnr.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id                      = 'Z001'
          language                = sy-langu
          name                    = lv_name
          object                  = 'VBBK'
        TABLES
          lines                   = lt_line[]
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      IF sy-subrc EQ 0.
        READ TABLE lt_line
          INTO lw_line
          INDEX 1.
      In Billing Header Text, the sign '&' (ampersand) is automatically
      added some characters so it becomes '<(>&<)>'.
      The logic below is to fix that issue.
        REPLACE ALL OCCURRENCES OF '<(>' IN lw_line-tdline WITH space.
        REPLACE ALL OCCURRENCES OF '<)>' IN lw_line-tdline WITH space.
        p_sgtxt = lw_line-tdline.
      ENDIF.
    ENDFORM.
    Regards,
    Teddy Kurniawan

  • FI document Header text formation using tcode F110 (Automatic payment )

    After completion of tcode F110 i.e. completion of a cycle of automatic payment transaction
    Then we can see header text of created FI document number by using tcode fb03.
    But the header text created through F110 has a concatenation of Run Date and Identification.
    There is problem that how it can happen?
    I have gone through all program code; there is no such direct coding for concatenation of header text, rather concatenate happens at different level of coding.
    We can create FI document using FB01 also and there is choice to enter Header text manually as well as we can select it using F4 help.
    Any one has any IDEA regarding this?
    Thanks,
    Suyog

    Hi
    I'm not sure it's helpful answer. The code below shows the way to change FI document header text (BKPF-BKTXT).
    tables: bkdf, bkpf, bsec, bsed, bseg, bset.
    constants:  c_bukrs type bkpf-bukrs value '11',
                c_belnr type bkpf-belnr value '1900000001',
                c_gjahr type bkpf-gjahr value '2011'.
    data: t_bkdf  type standard table of bkdf with header line,
          t_bkpf  type standard table of bkpf with header line,
          t_bsec  type standard table of bsec with header line,
          t_bsed  type standard table of bsed with header line,
          t_bseg  type standard table of bseg with header line,
          t_bset  type standard table of bset with header line.
    start-of-selection.
    * BKDF
      select *
        from bkdf
        into table t_bkdf
        where bukrs eq c_bukrs and
              belnr eq c_belnr and
              gjahr eq c_gjahr.
    * BKPF
      select *
        from bkpf
        into table t_bkpf
        where bukrs eq c_bukrs and
              belnr eq c_belnr and
              gjahr eq c_gjahr.
      loop at t_bkpf.
        concatenate t_bkpf-bktxt '-R'
        into t_bkpf-bktxt.
        modify t_bkpf.
      endloop.
    * BSEC
      select *
        from bsec
        into table t_bsec
        where bukrs eq c_bukrs and
              belnr eq c_belnr and
              gjahr eq c_gjahr.
    * BSED
      select *
        from bsed
        into table t_bsed
        where bukrs eq c_bukrs and
              belnr eq c_belnr and
              gjahr eq c_gjahr.
    * BSEG
      select *
        from bseg
        into table t_bseg
        where bukrs eq c_bukrs and
              belnr eq c_belnr and
              gjahr eq c_gjahr.
    * BSET
      select *
        from bset
        into table t_bset
        where bukrs eq c_bukrs and
              belnr eq c_belnr and
              gjahr eq c_gjahr.
    end-of-selection.
      call function 'CHANGE_DOCUMENT'
        tables
          t_bkdf           = t_bkdf
          t_bkpf           = t_bkpf
          t_bsec           = t_bsec
          t_bsed           = t_bsed
          t_bseg           = t_bseg
          t_bset           = t_bset
    *   T_BSEG_ADD       =
    hope it's help.
    Peerasit

  • Customer Invoice/Billing Document  Line Item Details

    I have be trying to get the line item details incuding Description, Qty, Ea pricing, etc., for an invoice for several days.   I am successfuly able to us the RFC FI_DOCUMENT_READ  to get a plethora of data back in several tables,  but none that contain the details I need.  I can see the informationI need usinf VF03 and the Document Number.  
    Here is the call I am making (Output tables defaulted in the .net connector wsdl file)
                Dim sAWORG As String = ""
                Dim sAWREF As String = ""
                Dim sAWSYS As String = ""
                Dim sAWTYP As String = ""
                SapBillingProxy1.Fi_Document_Read("", _
                     Me.txtDocNumber.Text, _
                    "VBRK", _
                    "MPMP", _
                    sAWORG, _
                    sAWREF, _
                    sAWSYS, _
                    sAWTYP)
    Am I asking for the wrong information or ??? 
    Please help or point me in the right direction.
    Thanks in advance for the help!

    Hi,
    If you are looking for Billing document line item details and if you have range of sales document reference numbers try using 'BAPI_BILLINGDOC_GETLIST' function module.It is remote call enabled.
    Regards,
    Sreekanth

  • Document header text in Fb03

    Hi all,
    In ml81n transaction there is a field called external number which is stored in ESSR table.
    Now when i go to mrrl and display the fi document i will be taken to Fb03 transaction. If i click the documnet header i will get another window which has documen header text. Now in this document header text i need to display the external number that was used in ml81n transaction.
    I tried with enhancement points at some points. but it was not helpful.
    Hope somebody would reply to this post.
    Thanks in advance
    Veda
    Helpful answers would definitely rewarded.

    Hi,
    You can use READ_TEXT to retreive header text.
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    You have to used the READ_TEXT functions to read the SAP long text. e.g. Sales Order, Purchase Order Item text etc.
    To check your long text header, go into the long text. Click Goto -> Header
    This will give you OBJECT, NAME, ID, and LANGUAGE.
    Pass them in the FM, you will get the header text that you want.
    Also go through the below link:
    http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8c8494511d182b70000e829fbfe/content.htm
    Hope this will help.
    Thanks&Regards,
    Naresh kumar.

Maybe you are looking for

  • [MAC] How to open a "damaged" file

    Hi all, A while ago I wrote a script that opens all InDesign documents in the selected folder and exports them to interchange format. But a couple of days ago a guy reported me a problem he encountered trying to open this damaged InDesign file. When

  • Services for Object/store Business documents in AS01

    HI We have a requirement to enable the services for object to attach documents to Asset master. We have made configuration in Trx OAC2,OAC3 for object type BUS1022. The ICON is appearing for AS02 & AS03 but not for AS01. We are 6.0 version How can I

  • Error after SSL Certificat update

    I updated the SSL certificate on a Win2003 SP2 server with IIS6.0 The initial certificat was a single URL certificate and is replaced by a wildcard one. After installing the certificate (and it's CA chain) using the mmc I changed the certificate in I

  • Vertical Lines only

    I have an Mac 12" Aluminum power book where the screen is not functioning properly. When I boot it up, the display turns on, usually a blueish screen with vertical line in the display that seem to represent the horrizontal postion of text that should

  • I get an error when trying to sync photos to my ipad2

    an error comes up saying - the ipad "ipad" connot be synced. the required file connot be found. - anyone else run into this???