Customer PO from sales Order Header

I want to get the customer PO(VBKD-bstkd) from Order header, Iam trying with the following select but it doesnt work. any suggestions, or code snippet help?
  SELECT SINGLE bstkd INTO rt_outtab-bstkd
        FROM vbkd WHERE vbeln = rt_outtab-vbeln
        AND posnr = '000000'.
Thanks
SP

Hi,
Please check my last reply to your earlier post..It was working fine for me..
Check this link for the lastest reply of mine..
Adding Field to the output of the Report
Thanks,
Naren

Similar Messages

  • Need to copy a custom field from sales order to billing document

    Hi All,
    I have a requirement, I need to add a new field in the sales order header part and even a field in the billing document, once i add this field up in both the documents in the header part i need to create a copy routine using the VOFM tran, can any body help me on what's the procedure to add a field in billing document and does the copy routine transfer the data ( Custom Field ) from Sales Order to the Billing Document, if yes can somebody help me with the procedure on how to and code of it.
    solved it myself ....
    Regards.
    Message was edited by: seshi
            seshi

    Hello,
    Regarding item 1, is it in the region of the global links (ie logout, home, preferences, etc.)? If not, have you tried creating a link via personalizations to the region you wish to have the link displayed (item type = link, destination = fully qualified name of your .xml page/region?
    Regarding item 2, you may have to create the custom subtab programatically using the controller for the region of the current subtab layout.
    Regarding item 3, you can also add a submit button to the page button bar region via personalizations. You can then add any logic you want to the button in the controller for the page.
    Hope this helps.

  • Function Module to fetch Customer Number from Sales Order or Process Order

    Hi Gurus,
    I am looking for a Function module which gives me customer number from Sales order or Process order.
    Please let me know of any FM's available.
    Regards,
    Madan

    Hi,
    Thanks for your response.
    I am actually looking for function modules which take "Sales Order" or "Process Order" as input (import parameter) and return Customer Number as output (export parameter).
    Please suggest some function modules you know any.
    Many Thanks,
    Madan

  • Error while loading data from sales order header via LO-Cockpit extraction

    Hi Guys
    I activated sales order header d/source 2lis_11_vhdr using 3x funtionality ontop of BI 7.0 dataflow. While creating infocube I am getting an error saying that " Infoobject 0RATE_TYPE is onl allowed as an attribute (not in infoprovider)"
    Also while creating the same cube I am not able to move UNIT objects to UNIT dimension (as it dont allow me to drag and drop)
    Can anyone please advise me why I am not able to activate cube based on above mentioned error.
    Thanks in advance.
    regards

    Hi,
    To be able to load transaction data for 2010, you should have the master data for that in the time dimension. For this, you need to go to BPC admin and add the dimension members in the time dimension manually.
    Alternatively, you can have a process to import master data from BI system also. You can do some more research on this. Please refer to the below link from help.sap:
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/46/fcc2ef34ee439aaa56a4f6ba001e4d/content.htm
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/e0/532af2d0804218a59157136bb63a98/content.htm
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/73/0f917879fd416099d04fb4c49889e0/content.htm
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/88/e16046853041b391314a91bfe3618b/content.htm
    Hope this helps.

  • Reading the block message or text from sales order header.

    Dear All,
    Please let me know how to read the block text which is present in the sales order header under texts tab.
    thanks in advance
    regards,
    Shoban

    HI
    Please look intothe follwoing code, which helps you to understand how to read the header slaetext.
      DATA: BEGIN OF text_head.
              INCLUDE STRUCTURE thead.
      DATA: END OF text_head.
    DATA: BEGIN OF TEXT_LINES1 OCCURS 10.
          INCLUDE STRUCTURE TLINE.
    DATA: END OF TEXT_LINES1 .
    DATA: text_id     LIKE thead-tdid     VALUE '0001'.
      DATA: text_spras  LIKE thead-tdspras   VALUE 'EN'.
      DATA: text_name   LIKE thead-tdname.
      DATA: text_object LIKE thead-tdobject VALUE 'VBBK'.
    CALL FUNCTION 'READ_TEXT'
          EXPORTING
            client                  = sy-mandt
            id                       = text_head-tdid
            language                = text_head-tdspras
            name                    = text_head-tdname
            object                  = text_head-tdobject
          TABLES
            lines                   = text_lines1
          EXCEPTIONS
            id                      = 1
            language                = 2
            name                    = 3
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            OTHERS                  = 8.
        CASE sy-subrc.
          WHEN 1. RAISE invalid_id.
          WHEN 2. RAISE invalid_language.
          WHEN 3. RAISE invalid_name.
           WHEN 4. RAISE NOT_FOUND.
        ENDCASE.

  • Address Subscreen from Sales Order Header (Partner Tab)

    Hi all,
    Apparently, I do have a requirement for Transaction VA01 and VA02. When a Sales Order is created, and I opened that Sales Order via VA02, I wish to grey-off the entire fields of partner's address screen.
    The partner's screen can be reached via VA02 -> Header Level -> Partner tab -> display a list of partner functions -> double click one of the line item, and address subscreen pop-up (This is where I want to grey-off the entire fields in the subscreen, this can prevent from user changing the address, so that the address sticks to the original address from master data).
    The address subscreen is at program SAPLSZA1, screen 0301.
    I have also tried to look at the user exit in SAPMV45A -> include MV45AFZZ, but can't find any possible solution from there.
    Any idea and solution will be much appreciated.
    Thanks and regards,
    Patrick

    Hi
    You can create a transction variant throgh SHD0 Transaction and make them output fileds.
    regards,

  • Issue in form personalization from Sales Order Header form

    Hi ,
    I am trying to call an pl/sql procedure in which i am invoking API to apply holds.
    I am able to succesfully see the hold applied when i run it from SLQ Developer.
    from Form personalization , i m doing the below
    10 Invoke API to Apply Line Level Price Hold if Customer Credit Limit is greater than Sum of all the order total of that customer
    Condition :
    Trigger Event: WHEN-VALIDATE-RECORD
    Tigger Object :LINE
    Condition ::SYSTEM.FORM_STATUS = 'CHANGED' AND
    xcbpc_om_apply_line_hld.xcbpc_cust_credit_check(:LINE.SOLD_TO_ORG_ID,:ORDER.TRANSACTIONAL_CURR_CODE) = 1
    Actions:
    5 Built in Built in Type: Execute a Procedure
    ='declare
    v_field_value VARCHAR2(200) ;
    begin
    XCBPC_OM_APPLY_LINE_HLD.XCBPC_CALL_HOLD_API
    ('''||${item.LINE.HEADER_ID.value} ||''','''||
    ${item.LINE.LINE_ID.value} ||''','''||${item.LINE.ORG_ID.value}||''');
    end'
    10 Messgae Show
    Customer Credit Limit is Exceeded.Hence Hold is applied
    The Api is getting called from form( i can see through debug messages) but i am unable to see the hold on the form.
    Can any one help me out on this?
    Thanks,
    Seshu

    As I know, project number is used for oracle project management module. You can not use it alone.

  • Sales group not filled form sales order header in PGI accounting Document

    Hi all,
    we are creating a sales order . when sold to and ship to is entered the sales group at the header level is fetched from the customer master automatically.
    Now after changing the sales group,different from customer master,the sales order got saved as usual with a warning mesaage 'sales group is diiferent from customer master'.
    After doing PGI and billing , the sales group fetched in billing document is same as that of sales order header,but when good issue delievry document is displayed , in accounting document of the material document (ie. in FB03),the sales group in profit segment tab is getting filled from customer master.
    Now the requirement is to fetch the sales group from sales order header instead of customer master.

    hi
    check your copy control settings and change if required

  • *Credit Control Data reome form sale order header data*

    Hi
    have any option for remove credit data from sale order header (VBAK-KKBER)?
    Thanks
    L.C

    Hi Lalith,
    Its not possible to delete KKBER Data from Sales Order.
    because it carries out from customer master XD01 and FD32
    if you want remove, if the sales order is open status delete the same and delete it from customer master and again raise the sales order and check the same,
    Thanks and Best Regards,
    Muralidharan S

  • How to Copy Sales Text Data from Customer Master to Sales Order.

    Hi SAP Guru's
    I have Completed Configuration for Central Text for Customer Master for two texts 1)Additional Attachments 2) Wooden Packing
    I got these two fields in Customer Master.
    I need these data to be copied from  Customer Master to sales order. But i am unable get these two in to sales order.
    Steps which  I have done for Text Determination.
    1) Text Id in for Text Object KNA1
    2)Placed Text Id  in Text Procedure  and assigned   this procedure to Customer Account Group.
    Could you please advice me
    Thanks in Advance.

    Text Control
    In this IMG activity, you define the rules for text determination. You must carry out the following steps:
    Select a text object and define the rules for text determination for this object. Text objects are, for example, the sales texts in the customer master record or the sales document header.
    Define the permitted text types for every text object. If the text types contained in the standard SAP R/3 System are not sufficient, create new ones.
    Define the access sequences. This way, you define how the SAP System should determine the texts for a text type.
    Group the text types together in text determination procedures. The SAP System then proposes the text types from the procedure when you maintain a customer master record or a sales & distribution document. The search for the respective text is carried out using the access sequence which you have stored for each text type in the procedure.
    Allocate the text determination procedures so that a procedure applies to the following criteria in each case:
    account group customer
    sales & distribution document type
    item category

  • Text copy from customer master to Sales order and invoice

    Dear friends,
    when i maintain the text in the customer master ther needs to copy to sales order and from sales order to invoice.
    Can you please guide me how to do this config
    Thanks
    Raju.

    Dear Raju,
    First you need to do the Text determination for all areas(i.e Customer Sales and distribution,Sales order header,delivery header and billing header) through VOTXN transaction.
    -->Create the Customer text ID under Object KNVV
    Maintain the text for Text ID in the customer master >sales area data>Extras-> Text
    To copy the customer text to the sales order you need to keep KNVV table as Text object in the sales order text access sequence for the text ID.
    If you want to copy the sales order header text to the invoice header first you need to copy the sales order header text to the delivery header from delivery you can copy to invoice.
    When you want to copy the Text from Sales order to delivery the Access sequence will place a role
    If you want to copy the sales order text to the delivery document The Text Object should be VBBK in the delivery Header Text determination access sequence for that Text ID
    Again you can copy the text from delivery to Billing document through checking the Delivery Text field in the billing document detail screen (Top most bottom of the screen).
    Go to VOFA transaction select your billing document type then go in to the details here you can find the Delivery Text field you just check that check box.
    Now system will copy the sales order header text to the delivery header then it will copy to the invoice header.
    I hope this will help you,
    Regards,
    Murali.

  • Text is not copied from Customer masterdata to sales document header

    Hi Friends,
    Text was maintained in customer masterdata, that should be copied in to sales order header. In Quality server its working as per requirement. But in production its not copied from customer master data.
    Same configuration settings are in production as well as quality(VOTXN)
    Please suggest me regarding this

    Hi Durga,
    Please go to SD> Basic function > text control> Define and Assign Text Determination Procedures and in that screen, check the customer sales and distribution change view customer sales text and sales note for customer and its assignment .
    I hope these will be helpful for you.
    Regards,

  • Subsinvprocess in the sales order header --- billing tab and in the custom

    Hello All
    there is a field SubsInvProcess in sales order header - billing- tab and in the customer master - billing tab
    what was the functionality of this field. I never worked with it
    kindly help on this one. 
    Thanks,
    prasad

    Dear Vara prasad,
    The value of this field is if you want to print the invoices that are being posted manually you can activate this field.
    It will be directly proposed from customer master to sales document, where you can change.
    Please let me know if you want any further clarifications.
    Please go through this thread also for further reference.
    Clarification for usage of Subsequent Invoice Processing in Customer Master
    Thanks&Regards
    Raghu.k

  • Subcontracting PO from Sales order = Delivery address tab = customer

    Hi,
    We have a Sales order which saves a PR.
    If I transfer the PR to the subcontracting PO.
    The delivery address is equal to my company.
    But I want to send the goods directly to the end customer.
    I will post a dummy receipt. I need a customer field in the
    tab delivery address (same as with third party).
    How can I solve this problem?
    Thank you,
    Eric van Zundert

    this is possible however you have to some configuration.
    1.you have to maintain combination item category -L and acct assignment category - 1
        spro-->mm->purchasing--->Account assignment here you have to maintain
    2.you have to allow to create PO with item category 'L'  when PR item category is 'S' .
        spro->mm->Purchasing->PO->document types
        for std order NB you have to maintain above combination
    3. now if PR is converted into PO ,the system automatically  take item category --S
        acct assignment category--1 from Sales order.In PO you have manuallly change the item category from 'S' to 'L'.
       now the delivery address will not be changed from customer address.
       this will solve you problem
      reward if useful

  • Use of customer group 1, 2 , 3, 4, 5 in Sales order Header Additional dat ?

    Hi,
    Can somebody explain the Use of customer group 1, 2 , 3, 4, 5 in Sales order Header ? Is it only meant for reporting?
    Thanks

    Try:
    Sales and Distribution -> Master Data -> Business Partners -> Customers -> Sales -> Maintain reserve fields in customer master
    Help to this topic says:
    There are reserve fields in the customer master record which are not used in the standard system. They are available for use and are as follows:
    Customer group 1 (View: V_TVV1 Field:KVGR1)
    Customer group 2 (View: V_TVV2 Field:KVGR2)
    Customer group 3 (View: V_TVV3 Field:KVGR3)
    Customer group 4 (View: V_TVV4 Field:KVGR4)
    Customer group 5 (View: V_TVV5 Field:KVGR5)
    You can find the fields in the customer master record under the sales and distribution data in Sales. Choose additional data under Environment.
    It is advisable to change the field description (Data elements KVGR1 to KVGR5).
    This is described in the system modifications in the Reserve fields unit of the customer master record:
    Reserve Fields in Customer Master
    Record
    In this step you maintain the valid entries for the individual views.
    Did this help you?
    Greetings
    Martin

Maybe you are looking for