Table field:= Sales order is having attachments or not;

Hi All,
I appreciate your help on the below please;
I need to check the Sales order is having attachments or not;
Appreciate if you know the SAP table field for the above check please;
Thanks
Iver

Hi,
Try out this.
DATA: is_object                TYPE sibflporb,
            it_relation_options TYPE obl_t_relt,
            is_relation_options TYPE obl_s_rolt,
           gt_links                    TYPE obl_t_link.
           is_object-instid    = <sales order number with leading zeros>.
           is_object-typeid   = 'BUS2032'.
           is_object-catid     = 'BO'.
*u201Ddocument relation
is_relation_options-sign      = 'I'.
is_relation_options-option   = 'EQ'.
is_relation_options-low        = 'ATTA'.
APPEND is_relation_options TO it_relation_options.
TRY.
    CALL METHOD cl_binary_relation=>read_links
      EXPORTING
        is_object           = is_object
        it_relation_options = it_relation_options
      IMPORTING
        et_links            = gt_links.
ENDTRY.
GT_LINKS should be filled if sales order has attachment.
Regards,
Sudhakar

Similar Messages

  • How can I use the field "Sales Order" on derivation?

    Dear All.
    This is about PA characteristic derivation.
    I want to change the characteristic value "Sales Order (KAUFN)" by derivation.
    But I cannot select the characteristic field on target field.
    The field "Sales order(KAUFN)" doesn't exist there.
    Why? How can I use the field "Sales Order" on derivation?
    Y.C.Bae

    Hi Bae,
    in order to be able to choose fields KAUFN (for sales order) and KDPOS
    (for sales order item) as target fields of derivation step 'enhancement'
    you have to modify the coding of subroutine EXIT  GET_ALLOWED_TARGETS
    in program RKEDRCOPA like this:
        NAME-IDENTIFIER = 'CO-PA'.
        NAME-TABNAME = FIELDTAB_ENTRY-TABNAME.
        NAME-FIELDNAME = FIELDTAB_ENTRY-FIELDNAME.
        IF FIELDTAB_ENTRY-USGFL CA 'DUV'
    BEGIN OF INSERTION *****
             OR FIELDTAB_ENTRY-FIELDNAME = 'KAUFN'
             OR FIELDTAB_ENTRY-FIELDNAME = 'KDPOS'
    END   OF INSERTION *****
             OR FIELDTAB_ENTRY-FIELDNAME = 'KNDNR'
             OR FIELDTAB_ENTRY-FIELDNAME = 'ARTNR'
    Actually sales order number and sales order item shouldn't be changed
    by derivation (therefore they are no valid target fields in standard)
    but if you need to fill them within an enhancement this modification
    will help you to define them as valid target fields. But this is just
    the technical frame so far; the logic from which table you'd like to
    derive the sales order number correctly depends on your implementation
    of the enhancement! I just want to ask you to be rather careful with
    the implementation of the exit so that the sales order number isn't
    changed in cases that shouldn't be concerned.
    Regards,
    Abhisek

  • Table for Sales order Cost Est?

    Cost estimate data for sales orders used to be kept in KEKO and KEPH -
    Now that we've upgrade to 5.0 - there are only product cost estimates.
    Anybody know the tables for sales orders?
    thanks

    Dear Althea,
    please check with this tables.
    VBAG                           Sales Document: Release Data by Schedule Line in Sch.Agrmt.
    VBAK                           Sales Document: Header Data                               
    VBAP                           Sales Document: Item Data                                 
    VBBE                           Sales Requirements: Individual Records                    
    VBBS                           Sales Requirement Totals Record                           
    VBDATA                         Update data      
    Regards
    Mangal.

  • Sales order and Item no is not appearing in the Notification

    Dear Experts,
    1] While Creating notification through Q1 Notification type I am entering sales order and Item No under Processing tab,And I will save the same.
    When I go QM02 transaction the entered sales order and Item No will not be available.
    2] While Creating notification through F1 Notification type I am entering sales order and Item No under subject tab And I will save the same.
    When I go QM02 transaction the entered sales order and Item No will not be available.here also the enter sales order and item is not available.
    Please suggest how to get the same.
    Thanks in advance

    Dear All,
    Please find the below steps the way I have constructed the Notification.
    Go to Transaction QM01
    In the Initial screen enter Notificaiton Type as 'EC'
    Then Press Enter you will get in to screen.
    Under "Subject" Tab
    Enter Problem by selecting F4 drill down menu
    Enter Department selecting F4 drill down menu
    Then Go to Next Tab "Reference Objects"
    Here Enter Sales Order as '45000031'  and in the next field '10000' and Finally Save the transaction.
    and Note down the Notification Number.
    Then Go to next transaction QM02 [Notification Change]
    Enter the generated Notification No.
    And Go to  Tab "Reference Objects" , Here see the already enter 'Sale order- 45000031 and 'Item-10000' Which will not be appearing.
    Please suggest.
    Your Quick responce is highly appreciated.
    Thanks and Regards

  • Sales order stock 110000193 000050 does not exist

    Hi Friends,
    I have a problam in Confirmation of Production order against sales order. Every time I confirm the production order system give an error message Sales order stock 110000193 000050 does not exist.
    where I check the material in mb52 transaction , the stock shows on that material.
    Please give solution .
    thanks in advance.
    Ajit Sharma

    Hi,
    It seems you have activated back flush some or all the components.
    In MTOscenario, system looks for sales order stock for all the components.
    Since sales order stock is not available with your system the message.
    Try with movement type 412E in MB1b to transfer components from U/R to sales order stock.system propmts you to give sales order number Pl. provide there & carry out transactuion.
    Then the system will pick up the stock & post.
    Regards,
    R.Brahmankar

  • Regarding: table having block stock field sales order wise

    Hi,
    I am working on report in which i have to display the block stock sales order wise ,i had used to tcode MB52 and MMBE and i was first using table MCHB and MARD ,it displays only the bocked stock ,but when i click on  special stocks icon in tcode MB52 n execute it the qty displayed in that is not being able to be displayed in the tables MARD n MCHB.
    right now i am using table MSKA and varifying it with MB52 tcode.
    PLZZ HELP ME OUT BY telling me which table to be used for displaying the block sales order wise.
    Edited by: ric .s on Mar 6, 2008 11:19 AM

    Hi,
    Try out this.
    DATA: is_object                TYPE sibflporb,
                it_relation_options TYPE obl_t_relt,
                is_relation_options TYPE obl_s_rolt,
               gt_links                    TYPE obl_t_link.
               is_object-instid    = <sales order number with leading zeros>.
               is_object-typeid   = 'BUS2032'.
               is_object-catid     = 'BO'.
    *u201Ddocument relation
    is_relation_options-sign      = 'I'.
    is_relation_options-option   = 'EQ'.
    is_relation_options-low        = 'ATTA'.
    APPEND is_relation_options TO it_relation_options.
    TRY.
        CALL METHOD cl_binary_relation=>read_links
          EXPORTING
            is_object           = is_object
            it_relation_options = it_relation_options
          IMPORTING
            et_links            = gt_links.
    ENDTRY.
    GT_LINKS should be filled if sales order has attachment.
    Regards,
    Sudhakar

  • Table for sales order change by field

    Dear Friends,
    I want to get the data @ table level for the list of sales orders with changed by field. Can you please tell which table/s for sales order change by field can be used?
    Thanks,
    pinky

    Hi
    You can get the changes for SALES ORDER item in CDPOS table
    Goto SE16 and find the changes.
    hope it will serve your purpose.
    thanks,
    santosh

  • Avoiding Z-table and having a global internal table during Sales Order

    Hi All,
    I have a requirement like this.
    1. In the R/3 system I am creating Sales order.
    2. For each line item, it will call APO system to check the availability of the materials and the informaiton is returned back to
    R/3 system.
    3. As the soon as the informaiton is recieved in R/3 system, we found one enhancement point and this informaiton is being captured now in a Z-table to do some processing while saving the order after processing all the line items
    4. I wanted to avoid the Z-table and want to have some global internal table which will be available till the end of the processing of the sales order.
    Solution I am thinking of:
    1. One option could be creating a global internal table in SAPMV45A program in one of the enhancement points in the TOP declaration. But, that global internal table is not accessible in the enhancement point where I wanted to store the information. Because, I am actually updating the table in a FM.
    2. Export it to memory and import it when needed. But, how to update the informaiton in this intenal table(which is in memory) for every line item
    Please guide me. Any help on this would be highly appreciated.
    Thanks,
    Babu Kilari

    >
    Babu Kilari wrote:
    >  Solution I am thinking of:
    >
    > 1. One option could be creating a global internal table in SAPMV45A program in one of the enhancement points in the TOP declaration. But, that global internal table is not accessible in the enhancement point where I wanted to store the information. Because, I am actually updating the table in a FM.
    >  Babu Kilari
    If you are updating this table in a FM, you can always add one tables parameter to the function ( if it is a custom function) and pass the globally declared internal table to the function call in the user exit update the table in the FM and when the end function is reached, you will have the updated internal table again at the user exit after the function call.
    Imp- Declare your internal table in MV45ATZZ.
    KR,
    Advait
    Edited by: Advait Gode on Aug 6, 2009 8:16 AM

  • Create a new entry for zfield in the CDHDR table when sales order is create

    Hi,
    We have some custom field added to table VBAP and that field need is updated thorugh transaction VA01 or VA02.
    The Function poeple is asking to Update the CDHDR table for the ztable when ever the field is updated ,and they want
    the changes to appear in the sales order changes Log.
    Prabhudas

    Problem solved.
    By using the ..
    Used this FM "VERKBELEG_WRITE_DOCUMENT" in MV45AFZZ in exit...DOCUMENT_SAVE.
    by passign the only VBAK and VBAP table structure of XVBAP and YVABP and field name as ZZFIELD.
    Prabhudas.

  • How to update SIS Structure S503 table for Sales Order

    Hi All,
    I have a requirement where i want to restrict S503 table getting updated for an Item Category. Can somebody please help me in this.
    Complete scenario:
    I am splitting Sales Order line item into multiple Sub Line items based on batch determination. So for a line item 10 in Sales Order having ordered quantity 1000 i have 2 more sub line items 101 and 102 based on 2 available batches having 500 quantites each. When Sales Order is saved S503 have 1 entry for SO created but the ordered and confirmed quantity is doubled as it is picking it from main line item 10 as well as from 101 and 102.
    Is there any way to restrict the main line item entry quantity from getting in to SIS structures.
    Thanks,
    Sudhir.

    Hi,
    There is a change in the requirement.
    Scenario:
    I have created a sales order with some 4 condition types, in that 2 condition types are of class A & B and the other two is of class C. Here I need to update the condition price of class A & B only and the remaining condition types should not get update even though there is an updated price is available.
    For the above scenario, I need to write a standalone program. Do we have any function modules to update the price of the single condition in the sales order? Please tell me how we can update the sales order at item condition level.
    Thanks.
    Balaram

  • What is a table containing sales order and the contract it refers to

    Hi,
    I have a following problem (ECC6.0):
    A sales order is created in VA03 and referenced to a contract. I need to locate the table or tables (or FM) which contains the information of the sales order number and the contract number.
    Problem with VA03 is that I can see both numbers in the document flow screen; i.e. sales order (Doc.no) is xxxxx and the Preced.Doc field contains the contract number. However, this is only an ALV view. I cannot get anywhere from the program SAPMV75F.
    I have checked table VBAK and it contains most of dat but not the link itself as it has any sales document. I need to have an entry containing the link between a given sales order (+item) and the contract.
    Instead of creating with "Create with reference" and select Contract (which you need to refer to),  the system is defined so that contract is used with a hierarchy customer. Debugging of creating did not help as the linking was conducted in the background without activation of debugging screen. I'm not an SD and no experience with contract.
    Help is highly appreciated,
    Pipsa

    Hi,
    The field VBAK-GUEBG is used for valid from and valid to date,
    you can find the Preceding and Subsequent sales and distribution document under table 'VBFA'.
    under SMOD, you can find below exit use for Contract data modification:
    V45W0001 Function module exit for copying sales header data into
    items.
    This enhancement contains the user exit:
    -   EXIT_SAPLV45W_001
    regards
    Vivek.
    Edited by: Vievk Vardhan on Jan 29, 2010 3:13 PM

  • Link tables of Sales Order and Purchase Requisition

    Hi,
    thru which tables we can get the data of purchase requistion for a sales order.
    regards,
    balu

    Dear Balu,
    the fields VBEP-BANFN and VBEP-BNFPO are filled in the third-party process only. It means that there is 1:1 connection between the schedule line of the sales order and the purchase requisition. In the third-party process during saving the sales order the purchase requisition is created automatically and is linked to the order.
    If the fields are empty, it means, you have no third-party process and no 1:1 connection between the sales order and the purchase requisition. Probably the sales order created normal requirements, which generate purchase requisition(s) after MRP run. In this case you cannot see the purchase requisition from the sales order as there is no 1:1 connection. You have no chance to get the data from sales order to the purchase requisition.
    The only possibility which you (may be, it depends on the process) have, is to find sales order numbers from the purchase requisition: so to develop the process backwards. These data are stored in the database table EBKN: Purchase Requisition Account Assignment.
    Please use the following fields:
    EBKN-BANFN  - Purchase requisition number (key field)
    EBKN-BNFPO  - Item number of purchase requisition (key field)
    EBKN-LOEKZ  - Deletion indicator in purchasing document (key field, can be helpful)
    The corresponding sales orders are stored in:
    EBKN-VBELN  - Sales Document Number
    EBKN-VBELP  - Sales Document Item
    EBKN-VETEN  - Schedule line number
    I hope, this information will help you further and will solve your problem.
    Kind regards,
    Akmal Vakhidov
    Development Support SD, SAP, Walldorf/Germany

  • URGENT: REGARDING TABLE FOR SALES ORDER STOCK

    Hi,
    I making a report in which i have to display the material's minimum ,maximum and reorder point levels and its stock level too.
    but 1 problem i am facing is that if the stock is present in the sales order theni have to use the MSKA table but it contains different fields such as :-
    1.) Unrestricted stock
    2.) Block Stock
    3.) Quality stock
    I want to know that table which stoers the sum of all the values given above.
    plzz help me out how to solve this problem.it is really urgent to me as i have to complete the report right now.

    Hello,
    I think you have to sum up all the values (You can request the requirement from functionals) also you can always cross check with transaction MB52.

  • Require help on coast center and work center tables through sales order

    dear experts
    my requirement is to report the cm05(capacity planning ) transaction.
    The original capacity planning consists of workcenter details.
    but my client needs the report as follows
    on which sales order and on which work center we require the capacity of materials.
    any tables and fields for this report please.
    help needed.
    kindly update me.

    hi,
    Please explore table CAUFV View "Order Headers PP/CO" ,here you will find the relationships between the three.
    Regards,
    Neha

  • Pricing condition tables for Sales Order

    Hi experts,
    please can you tell me the code I have to write into a query's field to retrive the value of a specific header pricing condition saved into a Sales Order?
    Thank you very much
    Kind Regards
    Andrea

    1) From sale order header table VBAK fetch the condition number KNUMV for a particular sale order VBELN.
    2) From conditions table KONV fetch the conditions for condition number KNUMV with item number POSNR as 000000.
    This way you can fetch the header conditions. Our ABAPers normally do a loop on the line items and total up the values to arrive at the header condition value. If you use this way then you need to pass another field condition origin KHERK with value D while fetching data from KONV.
    Regards,
    GSL.

Maybe you are looking for