How to get sales org. field value in CUSTOMER_ADD_DATA~SAVE_DATA  ?

Dear Guru ,
The requirment is we send some information to external email system when user save the customer master data ( XD01 , XD02 ) .
I try to use badi CUSTOMER_ADD_DATA~SAVE to satisfy this requirment , but i can't get the Sales Org value ( KNVV-VKORG ) in this badi in XD02 ...
Has someone guide me how to do that ?
Below abap code can get the Sales Org value in tcode XD01 , but not in tcode XD02 .
        DATA :  lv_knvv type char30 value '(SAPMF02D)KNVV'  .
        DATA : l_vkorg type vkorg .
  FIELD-SYMBOLS : <fs_xknvv> type knvv .
  ASSIGN : (lv_knvv) TO <fs_xknvv> .
* Now i have the Sales Org in XD01 !
      l_vkorg = <fs_xknvv>-vkorg .
Thanks .
Best Regards,
Carlos

  DATA :
         lv_knb1 type char30 value '(SAPMF02D)KNB1' ,
         lv_knvv type char30 value '(SAPMF02D)KNVV' ,
         lv_kna1 type char30 value '(SAPMF02D)KNA1' .
  FIELD-SYMBOLS : <fs_xknb1> type knb1 .
  FIELD-SYMBOLS : <fs_xknvv> type knvv .
  FIELD-SYMBOLS : <fs_xkna1> type kna1 .
  ASSIGN : (lv_kna1) TO <fs_xkna1> .
  ASSIGN : (lv_knb1) TO <fs_xknb1> .
  ASSIGN : (lv_knvv) TO <fs_xknvv> .
Edited by: Carlos Zhang on Dec 17, 2010 3:25 PM

Similar Messages

  • How to get readonly text field value in backing bean?

    Below is my code in JSF.
    <h:inputText id="prodLine" value="#{fbackingBean.value}" required="true" styleClass="readOnlyField" readonly="true"/>
    This is a readonly field, and the value will been pass in by a pop up window. after the value had been passed in, i try to store the data which i had selected, but the value in readonly field (which show in above) return a null value.
    May i noe how can i get the readonly field value in backing bean? thanks!

    Why not keep track of the value in the backing bean? If it's a read only value set from a backing bean it should be simple to retrieve from a backing bean.
    I'm new to JSF, but one thing that I have figured out is to try to put everything in the backing beans possible and to do as little as possible within the JFS web page components.

  • How to get-set Hidden field value from JSP ?

    Hii,
    I am quite newbie about jsp and looking for some help..
    I have several url links on my jsp page.
    I when I click one of them, I want to reload my page with new request parameter(s) but also keep the older one(s) in hidden field(s)...
    but I dont know how to set and get hidden field value "syntax" and I am not sure about where/when should I do this... at first I though that I can do it in "onClick" property of url..
    Thanks..

    Hy,
    I have a problem just like that. I am trying to send the value of an subdomain is to another page to be able to modify an entry.
    So in listsubdomains.jsp I have
    <input type = "hidden" name = "subdomainid" value="<%=subdomains.SubdomainID%>"><%=subdomains[i].SubdomainID%>.
    This shouls send the id of the subdomain.
    I an sending this to modifysubdomain.jsp with <form name = "listsubdomains" method = "post" action = "modifysubdomain.jsp">
    and there I retrieve the value like this:
    Integer id = new Integer (request.getParameter("subdomainid"));
              out.println(request.getParameter("subdomainid"));
    My problem is that no matter what is the value I chose to modify it always sends the first value. If I another value manually it works, but just then.
    Please give me some ideas.

  • How to get the following field values?

    I have an invoice number. How can I find out (from which tables and fields) the ship date, vessel, port of loading, port of discharge. I think it is VTTK table and fields are datbg, text1, add01 and add02, but if so what should I give in VTTK table to get these values?
    Please give your input.
    I appreciate and points assured for helpful answers.
    Krishen

    Hi Krishen,
    For ship date you can find the data in LIKP table itself. All other details like vessel, port of laoding and port of discharge will be found at the shipping point level.
    Select the delivery number in VL03n and from the menu GOTOITEMSHIPMENT you will find the shipping point details.
    Cheers
    VJ

  • How to get multiple selected fields in list

    Hello all,
    I am trying to get multiple selected value from a list but i dont know how to get multiple selected fields from a list though AS3.
    Actually i want to pass the selected fields to php, so for that i need to get the selections and send to php.
    Thankx..

    i want to put the selected fields of list in an array through AS3....
    actually......i figured it out how to do that...........
    Its simple......use
    list.selectedItems[index]
    and to get the number of items selected......
    list.selectedItems.length
    simple.....

  • How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR)

    Hi
      Am working on a Report based on Purchase order & Sales, Could any body tell How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR).
    the Field i need to get are : SALES TEXT, PO TEXT.
    Sunil.

    Hi Sunil,
    For getting Material PO text and sales text, you have to rely on Purchase Order and Sales Order. And use READ_TEXT function module to fetch the text.
    Below are examples of PO text and Sales Text:
    1. PO text:
        CALL FUNCTION 'READ_TEXT'
         EXPORT
           ID = 'F03'
           LANGUAGE = SY-LANGU
           NAME = '450000011200010' conacte PO number and line item number
           OBJECT = 'EKPO'
         TABLES
           LINES = INT_TLINES "you will get text in this table
    2. Sales order text:
            CALL FUNCTION 'READ_TEXT'
         EXPORT
           ID = '0001'
           LANGUAGE = SY-LANGU
           NAME = '0000000036000010' conacte SO number and line item number
           OBJECT = 'VBBP'
         TABLES
           LINES = INT_TLINES "you will get text in this table
    ref: STXH and STXL tables.
    Hope it will solve the problem.
    Regards
    Krishnendu

  • : Colon in Sales Org Field.  ECC6

    Dear experts,
    I am updating some of our roles with correct org levels.  I noticed in the sales org field of one of them there is a : in place.  Can you tell me if there is a reason for this?  I understand the ' ' but I have never come across a colon before that wasn't related to BI queries.
    I would like to remove it if its not supposed to be there so I have clean roles so to speak!
    Any replies appreciated.
    Dawn
    I have also noticed this in the customer field.  Its under controlling ZCO_REP03
    Edited by: Nicnac on Feb 19, 2010 12:47 PM

    > I have also noticed this in the customer field. Its under controlling ZCO_REP03
    Hokai! I would be carefull!
    Is this really an authorization object or a role name?
    I suspect that what the BW folks might have done is to tap into the ECC roles to reuse authorization data for their reporting authorizations. If they wantes to achieve this for all org fields from ECC and also provide the aggregation values as required (because the users and possibly re-usable roles already exist) then they might be maintaining this authorization (which appears to be useless) in the ECC system so that their extractors can extract the role data as well!!
    I would go to the BW folks and check on that side first before changing anything.
    There are several advantages from this approach, but it does create a dependency between the ERP system and the BW system which is not easily "visible" on the ECC side.
    If they are not available, then I will show you some tricks to some of the hints you can find yourself (if this is the case). Let me know.
    Actually, I am feeling lucky today so I will bet my hat on it that it is a BW extraction...
    Cheers,
    Julius

  • How to get the previous record value in the current record plz help me...

    In my sql how to get the previous record value...
    in table i m having the field called Date i want find the difference b/w 2nd record date value with first record date... plz any one help me to know this i m waiting for ur reply....
    Thanx in Advance
    with regards
    kotresh

    First of this not hte mysql or database forum so don;t repeate again.
    to get diff between two date in mysql use date_format() to convert them to date if they r not date type
    then use - (minus)to get diff.

  • How to get sales order number before saving in VA01 by using parameter

    Hi,
    Please let me know how to get sales order number in transaction VA01 before saving it by using parameter in SU3.
    I tried to set parameter in SU3 "AUN", but it is not working as required, means sales order number is not appearing before saving.
    can you please suggest how to do it?
    Thanks & Regards.
    Rahul Verulkar

    Hi,
    In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
    If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
    Thanks & regards,
    Rahul Verulkar

  • How to get a Tree Node Value when a Tree is Expanded

    My reqiurement is when i Expand a Tree i need the Expanded tree Node Value. For Example Consider Parent as a Root Node of a Tree, and Consider its two Children Child1 and Child2.
    When + Parent Expanded
    I will Get the Output as --Parent
    - Child1
    - Child2
    so As when i expand the Tree i must Get the String Value Parent.

    duplicate
    How to get a Tree Node Value when a Tree is Expanded

  • How to get Document Set property values in a SharePoint library in to a CSV file using Powershell

    Hi,
    How to get Document Set property values in a SharePoint library into a CSV file using Powershell?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    According to your description, my understanding is that you want to you want to get document set property value in a SharePoint library and then export into a CSV file using PowerShell.
    I suggest you can get the document sets properties like the PowerShell Command below:
    [system.reflection.assembly]::loadwithpartialname("microsoft.sharepoint")
    $siteurl="http://sp2013sps/sites/test"
    $listname="Documents"
    $mysite=new-object microsoft.sharepoint.spsite($siteurl)
    $myweb=$mysite.openweb()
    $list=$myweb.lists[$listname]
    foreach($item in $list.items)
    if($item.contenttype.name -eq "Document Set")
    if($item.folder.itemcount -eq 0)
    write-host $item.title
    Then you can use Export-Csv PowerShell Command to export to a CSV file.
    More information:
    Powershell for document sets
    How to export data to CSV in PowerShell?
    Using the Export-Csv Cmdlet
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can i transfer a field value in the main report to its sub-report?

    <p><font face="Arial" size="2">How can i transfer a field value in the main report to its sub-report?</font></p><p><font face="Arial" size="2">Please eloberate with example if possible!</font></p><p><font face="Arial" size="2">Thanks...</font></p><p> </p>

    <p>You can do a couple of things - one would be to pass the information using the data linking expert.  Right click on the subreport, choose &#39;Change Subreport Links&#39; and select the field(s) you are wanting to pass to the subreport.  CRW will build parameters and a record selection formula for you in the subreport, and if that&#39;s what you want, then great.  But you can also remove the selection formula from the subreport and work with the parameter fields in the subreport however you would like.</p><p>Alternatively, you can look to passing Shared variables back and forth from the main and subreport.  this link talks about the method to do this: http://diamond.businessobjects.com/node/251</p><p> </p>

  • How to make Sales Office field mandatory in VA01 initial screen?

    Hi,
    How to make Sales Office field mandatory in VA01 initial screen? I mean in the first screen where we enter the document type and the sales area?
    Regards,
    Ajit

    Dear Deepak,
    Thanks for the clarification.
    But, as far, I have understood the query - it is very simple and that is..
    Whenever one creates a Sales Order (T.Code: VA01), Parameter: Sales Office needs to be mandatory (for all Sales Order, irrespective of Customer Account).
    Until-unless, user won't enter the parameter: Sales Office, System will not lead to next page (now, here we need to enter Customer/ material etc...).
    I have answered the query, in this regards, only.
    Best Regards,
    Amit.
    Note: Pls. correct me, if I am wrong. Thanks for everyones guidance.

  • How to get the current month value for a customer exit variable?

    How to get the current month value for a customer exit variable? 
    And also if we have an InfoObject with date value (including date, month, year), then how to derive the month value from this date type of Char.?
    Thanks!

    Hi Kevin,
    Check here........
    Re: Customer Exist for "From Current Date To Month End"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    Cal month
    Regards,
    Vijay.

  • How to get dynamic check box value in NW Mobile 7.1

    Hi,
    i have 5 rows it contains dropdown and checkbox in a row.when i click update button i need the values of checkbox.How to get?
    Regards,
    Kanagaraj.

    Hi Vidyadhar,
    I have dropdown in first page.based ondropdown value selected navigating to next page.In that i am using row repeater it has label,checkbox and dropdown.here i need to  know whether the check box is checked or not while clicking update button.
    Drow down value also not able to get.
    How to get Checkbox and dropdown values?
    can u provide some sample codes??
    Regards,
    Kanagaraj.

Maybe you are looking for

  • DB Error during System Copy Import

    Hello, We are currently doing a heterogeneous system copy of an internal Solution Manager 7.01 (running on Linux SLES10 SP2 64Bit) to a new machine (running on Linux SLES11 SP1 64Bit). The database we are using on both side is MaxDB. During the expor

  • Adobe Camera Raw Release Candidate 6.7

    I am trying to install this software on my IMac. It downloads, but when I try to install it, it tells me the "update is not applicable". However, I still can't read files from my Canon G1X. I was able to install and download this file with no problem

  • How to Selectively Delete ONE Key Figure from Cube....

    Hi: On a Daily basis (Via Process Chain), I need to do the following: 1.  DELETE Single Key Figure from my planning cube.  When the "PYMNT DATE" is greater than System Date, then delete the      key Figure. 2.  Once Deleted, LOAD the same Single Key

  • Oracle 11g 2, Windows Service OracleDBConsole doesn't start.

    Hi! I installed ORACLE 11.2 database (11.2.0.1.0) On Windows XP SP3. Global database name: orcl SID : orcl11g2 At the end of installation I got the error : +01.12.2010 14:50:17 oracle.sysman.emcp.EMDBPostConfig invoke+ WARNING: Error starting Databas

  • MacBook Pro change background autmatically

    I have  problem with my MacBook Pro. Since today the background image of my desktop changes automatically. Means that i have one of the standard background black and white pictures and after a few seconds the background image is gone and it is blue.