Status of a document line

Hi,
I developed an addon that creates the invoices with special logics leaving from the delivery.
I loop on the delivery line but I don't find the line status in DI API.
For example if a line has been returned (Shipment Return) how can I not consider this row?
Do I have to use a recordset with a query?
Thank you
Andy

Hi,
Do you mean that the property LineStatus (Open / Close) does not provide information that is detailled enough for your purposes?
In this case I think you are right (if I didn't overlook something):
You need to run a query for that purpose.
Sorry,
Frank

Similar Messages

  • How can I retrieve the document line status value from UI

    Hi,
    Right now I need to do some check with the each document line status in UI, but it seems it doesn't exist in the the matrix. When I try to use code like this:
    oEditText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("LineStatus").Cells.Item(i).Specific;
    It gives me Invalit Column error, I guess the line status field does not exist in the matrix. Do I have to use DI or SQL query to retrieve the like status value?
    Thanks,
    Lan

    If the document is open on the screen, you can of course get line status from the UI.
    It is column 40:
    oEditText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("40").Cells.Item(i).Specific;

  • DTW - Line Status in Marketing Documents

    In SBO 8.8 SP00 PL13, I'm trying to load Sales Orders and use the "LineStatus" column to set the row to either 'Open' or 'Closed'.  The SDK indicates that valid field values are bost_Open or bost_Close.  The database column contains either 'O' or 'C'.  However, it seems that DTW only accepts a value of 'O'.  Thus, there is no way to load, or later change, a row status to closed within DTW.
    There also is no field to set the entire SO to a closed status.  If it were possible to set all rows to closed, then I presume the document itself would be closed when all lines have been entered.
    I guess the only alternative is to load all lines as open, and then write a short app that uses the bost_ values to later update the status via DIAPI.
    Dave

    We are loading historical sales orders from a legacy system so that the customer can continue to track the items, quantities, and dates sold at various customer locations.  The customer is a large, multinational organization that requires access to this history to drive their daily processes.  We've already verified the data load techniques and the customer is satisfied.  The only hickup was setting the line status of the documents, per my original message.
    The SOs and POs are being loaded as documents connected to an Activity, which is connected to a Service Call, which is in turn connected to an Equipment Card.  Most of the 58k order lines are closed, and needed for reference purposes only.  These are the lines that I will close after loading, so that they do not continue to drive demand.  The open order lines will, of course, be left open and be managed under the standard business flows.

  • Changing Status of preceeding document in CHARM

    Hi Experts ,
    I need to change the status of a preceeding document in CHARM.
    I created a YDAD document from YDCR.
    When i change status of YDAD to cancelled i need to change status of YDCR to Cancelled.
    Steps i followed :
    1 . While changing status of YDAD to cancelled i added a new parameter PREDOC_STATUS and given status of YDCR as E0009.
    2. In "Assign actions" for  status "cancelled" of YDAD i hve given a action SET_PREDOC .
    3.In  "Specify Status Attributes"  for  status "cancelled" of YDAD  i hve given YDCR  YDCRHEAD  E0009.
    But still it is not working . Please help me on this .
    Thanks , Vijay

    Hello,
    please take a look to this Re: Change status of previous document
    If solution is not provided; please put break points as stated lines and tell us what you see
    Regards
    Khalil

  • How to define a document line as Withholding Tax Liable?

    Hi,
    Does anyone knows how to manipulate the Withholding Tax liable property in a document line?
    The property "WTLiable" in the Document_Lines object is a read property. So i can't set a value to this field via DI API.
    I'm working with SBO version 2004.
    Kind Regards,
    Ivan

    Luis:
    Thats because you cannot change the WTLiable status in the SBO either.
    To set the Withholding tax, you must change it in the Business Partner master data.
    Harold Gómez V.

  • Status Message - Park Document

    Hi All,
         In F-64 Park Document, while Parking, a Document Number appears in the status bar as Document '510000001' was parked. How to retreive this number into transaction Display Document 'FB03'in Document Number Field.
              Or how to get that number into a table field. Since i want to display the line items of the parked document,i need to store the document number in a table field.
       Can anyone help me out to solve it.
    Regards,
    Surya

    i am uable to Understand what are u trying to get ?
    1.If u using BDC to park the document, in the Return messages u will get the Park Document Numer.
    2.If it wis manual Entry no body can help.
    Regards
    Prabhu

  • Leveraging Workflow Approval status in Word document

    I am using SharePoint 2013 and have created an Approval workflow that works as expected.
    I would like to leverage the Approval Status within the document so that if someone views or prints the document, it will show "Pending" or "Approved" depending on where in the approval process the document is.
    Once final approval has been made, I would also like to display within the document (e.g. cover page) the name of the approver, the date the approval occurred.
    Would I have to use a Lookup column and point that to something?

    Hi,
    According to you description, my understanding is that you want to create an approval workflow which is able to set the status and approved time and the approver in the document.
    Per my knowledge, there is no OOTB way to achieve your request. As a workaround, you can set this in document library. If someone views the document library, it will show the status and approved time and the approver in the document.
    You could create a workflow using SharePoint 2010 platform in SharePoint  2013 Designer:
    Create a date column named “Date” and a person column named “Approver” and a Single line of text column named “MyStatus” default value is “Pending” in library.
    In SharePoint Designer 2013 using SharePoint 2010 platform ,select “Start Approval Process” action, set the user.
    Add action “set [Date field] to [Today]”, in Approval -> Change the behavior of the overall task process in Customization field -> in When the Task Process Completes field, shown as figure below.
    Add action “set [Approver] to [Current Task:Assigned To]”, “set [MyStatus] to [Approved]”in Approval -> Change the behavior of a single task in Customization field -> in When a Task Completes field. The steps are similar as above.
    Then you can show the library content type column value in document template via “Quick Parts”,  access library settings -> Advanced settings -> click Edit Template, in Insert tag -> Document Property -> insert column you want, shown as
    figure below.
    Thanks,
    Dean Wang

  • Change mass status and desscription documents.

    Hi all,
    I would like to know how is possible mass change status and description from all documents in SOLMAN?
    Thanks in advantage.
    Warlei Figueiredo

    Hello Warlei,
    Unfortunately i don't know such functionalitiy and i highly doubt that it even exists.
    I would advice you using transaction SI80 to change description and status because you ll get an overal view of all documents of your project in one and only screen
    For each entry (doc) you can click on button 'Set Status' to change status and button 'Change Attributes' to change other attributes such as Document type, Document Properties, Title, Technical Name, Content type...
    In order to have your list in SI80 Click on button '+ with search', then select 'Solution Manager', then in 'technical Name' fill your ptoject Name and validate.
    You ll see a new line that adds to your Favorites. By double clicking on your project you ll see the list of documents.
    If you need a mass update tool , you can ask a developer helping you achivere that. Table SA01PHIO contains description & status of all documents !!
    PHIOID is the hexadeciman id of documents; DESCRIPT is the description you want to change and STATE is status of doc
    A simple program mass updating this table (meaning description and status) won't be complicated for a developer to code
    Hope this helps
    Regards
    Khalil
    Edited by: Khalil SERRHINI on Jun 21, 2010 4:19 PM

  • 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.

  • How to Use document.Lines.SetCurrentLine

    Hi there, due to an enormous amount of time spent on this issue, I thought I would share how to use the SetCurrentLine method as posted to me by SAP support:
    It seems very cumbersome, as I have now to do an extra Recorset look up to get all the lines if I want to get the correct index - but at least it works (hopefully).
    Daniel
    SUPPORTS MESSAGE ****
    the way the SetCurrentLine works is as following:
    You do not have to use neither the LineNum nor the VisOrder as your
    parameterfor the setCurrentLine method.
    The system will use the corresponding index (starting at zero)linked to
    that line when running a query on the database and sorting the lines by
    LineNum.
    #,,DocEntry,, Item ,,LineNum,,Price,,VisOrder
    1,,11669,, A1001,,,, 600,00,,
    2,,11669,, A1003,,2,, 3,00,, 2
    3,,11669,, A1005,,3,, 600,00,,1
    See example above, that is the result of querying the database on that
    sales order and sorting by LineNum.
    The order in which the items are displayed in the application is based
    on the VisOrder. In this example items are displayed A1001, A1005 amd
    A1003.
    In order to update Item A1005 I will need to create a recordset, query
    the database and then loop the recordset to find the corresponding item
    and then use that index from the recordset to set the value for the
    SetCurrentLine method. In the example above index 0 from recordset
    points at item A1001, index 1 points at item A1003 and index 2 points at
    A1005 so your code should use setCurrentLine(2) to update item A1005.
    If you try to use LineNum (3 in this case) you will get an error message
    as index 3 does not exist in the recordset collection ( only 3 items
    with indexes 0,1 and 2). If you use visOrder 1(for item A1005) then the
    system will update item A1003 as 1 is the index for A1003 in the
    recordset.
    END OF SUPPORTS MESSAGE ********

    Hi Curtis,
    Your situation sounds a little different to mine, in that I know the LinNum of the documentline that I need to update - that is what the lineNumber variable is...
    To update all the rows, I guess you would just iterate through all the lines sequencially (ie starting at 0 and ending at document.lines.count:
    for(int i = 0; i < doc.Lines.Count; i++)
        doc.Lines.SetCurrentLine(i);
        // do your thing here...
    How do you know what lines you want to update??
    Dan

  • 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.

  • 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

  • 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

  • Wbs in customer/vendor and gl document lines during initial balance upload

    Hi gurus,
    Can we enter wbs in customer/vendor and gl documents lines during upload of opening balance upload?
    What is the impact of this?? Do we need to run project settlement on 1st day after go live to get data in cost center from ar, ap and gl????
    Thanks

    Hi Mohit,
    Why do you want to udpate WBS element for vendor and customer line items. Basic concept of said cost object (WBS element) is transfer values to Fixed assets or GL accounts or any other cost objects like cost center ,Internal order,sales order like that.
    You can update WBS element for all fixed expenses based on settlement rule and allocation types,which you created in customization and assigned cost elements or cost elment group over there. You can update WBS elements for said line items settle after opening balance update.  Please note ,it may not possible to update WBS element for vendor and customer line items.
    Basic cocnept of WBS element is cost collector ( You may use to collect revenue also as per nusiness processes) ,collects the cost from various resources and settle to said above objects. Vendor and customer balances are balance sheet accounts,which can settle through payments.
    Regards
    ManiKumar

Maybe you are looking for

  • Not able to launch Self Service Application thru JDeveloper

    We have been able to install and configure the JDeveloper and Self Service application, but not able to launch the application because of the error message below. We have followed the steps mentioned in the attached Quick Installation guide. We tried

  • Just bought a 4.6 standard flash builder license but ...

    Just bought a 4.6 standard flash builder license but was provided a link to the 4.5 download instead.  Can someone help?  Need to speak to someone to rectify this.  Please help!

  • Keyboard Layout files directory ?

    Hi all, I recently got an english/arabic keyboard. I've noticed a slight layout issue with the "Arabic-PC". It appears the best of the default arabic layouts. I can easily correct thing with using Ukelele. The issue is I'm unable to locate the Arabic

  • Preventing junk mail download

    Is there any way to prevent the download of junk and spam mail from server onto the iPhone?

  • SE K750i phone to Mac thru USB: Sometimes works, sometimes doesn't

    I sync and transfer files to and from from my SE K750i cellphone via Bluetooth most of the time and it works great. The other day I tried using the USB cable (came with the phone) and to my amazement, it opened iPhoto to download the pics I had taken