How to get xveda values in sales Order userexit MV45AFZZ

Hi guys,
Tables XVEDA and YVEDA has no entries in sales order userexit. Do you know how to get contract end dates of line items in sales order user exit

Used function module SD_VEDA_SELECT to solve the issue

Similar Messages

  • How to get PERSON_RESP value? (Sales Order)

    Hello experts,
    I am extremely new to ABAP programming. I am learning BOL programming, creating BAdI's and all that stuff and to be honest I don't really get it.
    First of all I would appreciate directions where I may find valuable information. How to determine which table do I need, what method is designed to do what thing.
    Right now I am struggling with creating a BAdI (actually modifying the order_save one). I want to put into DESCRIPTION field the following values: CREATED_AT, CREATED_BY, current date (date-sylo) and PERSON_RESP. I wrote or actually copied from the Internet most of working code. Now my BAdI works almost what I wanted it to work except it doesn't put into description PERSON_RESP value, because I don't know where to find it. There is no PERSON_RESP value inside crmt_orderadm_h_wrk table.
    I will be very grateful for any clues and advices.
    Looking forward hearing from you.
    Thank you in advance

    hi
    Once deleted it is not possible to know the details of sales order.
    for deleted sales orders and who deleted check table <b>"cdhdr" and "cdpos".</b>
    goto se16 and try with the above tables
    chages header and item respectively
    regards

  • How to get Changed fields in Sales order to create a report

    Dear Gurus,
    How to get the log from sales order for the change of particular field.
    In my scenario, If an user remove the delivery block from sales order I want to capture the date on which this delivery block
    is removed and by whom (User)?
    I know that I can get the log of change but can I get in the form of field updates because further I want to use that date and user name to create a report.
    I hope u got my query. Please reply soon that I can create a report.
    Thanks in advance.
    regards,
    Sanjay

    Hi
    You can use the table CDPOS for tracking the changes at the Table level with the Sales order number
    or Else you can also use AUT10 transaction to track the logs/chanages with START DATE, END DATE and the Transaction code in your case it is VA02
    Please check and revert back
    regards,
    santosh

  • How to Overrride ATP values during sales order creation

    Hi all,
    How i override ATP values during sales order creation.
    The scenario is that we need to migrate open orders from an existing legacy system to SAP.
    While migrating these orders, we need to make sure that dates on the schdule lines are same as they are in the old system. Hence we need to override ATP.
    Any suggestion welcome..
    Regards,

    Hi Kantur Shekar madhuri,
    Would you confirm the whether in your schedule line category is activated for "Product Allocation" or not.
    if not please activate and re run your scenario.
    Regards
    Arun

  • How to get initial entries of sales orders to go into CDHDR/CDPOS

    When a sales order is first created and saved, we do not get an entry in CDHDR and/or CDPOS for it.
    People have suggested looking at ERDAT and ERZET, but I have found that those entries may be false - especially if a person doesn't press save for a while.
    A followup question to this is that when I use SE16N to look at field CHNGIND in table CDPOS, one of the possible values is J.  It appears to work just like E does for deletes, but I cannot find a way to turn it on.  I have been successful in using SCDO to turn on values for deletes which I needed ( thus turning the D's into E's ).  A "J" appears to be an insert with the value of the field.
    Is there some transaction in the system which will force the system to log the initial creation and thus assign it a change number ?  I have a workaround of using a user exit to create an entry in a table, but I hate to have to do that if I don't have to.  And what do I use to get the system to log the individual values on inserts ?  It would help immensely if we had the values on the fields when they are inserted as a lot of logic is going towards determining those values.

    To anyone who reads this thread.
    We ended up adding code to userexit_save_document in MV45AFZZ to create records in a custom table with a field that indicates that the entry needs to be processed.  It got us around the date issue in the fact that the query looks for unprocessed entries and thus avoids the whole buffering thing.  The only fields we had in the table were VBELN, POSNR, and a single character processing flag ( initial if not processed, 'X' if processed ).
    There definitely is some kind of buffering going on so that our date/time went by and got missed.
    I never did find any answers to my last two questions - if I ever do I will post it here.  If anyone else finds out the answers, please post and I will award credit.

  • How to pass condition values fom sales order to packing list

    Hi!
    I need to show price amounts on the packing list printout from VL03N based on the condition value from the sales order document. Can anyone suggest how this can be achieved?
    Thanks!
    Cholen

    I think I have found a solution:
    - select vbak-knumv from sales order of delivery then select the condition values from table konv where vbak-knumv = konv-knumv.
    One can filter by kschl (condition type) if only particular amounts based on condition type need to show up.

  • How to get data from ECC --- Sales Order,Delivery,Transfer Order & Invoice

    Hi,
    Good day.
    I'm ABAPer and I need to get Sales Order,Delivery,Transfer Order & Invoice data from ECC.  The said data will be displayed in the custom form that I need to create.  How exactly do i get the said data above? 
    Can I get them in the tables avaialable in GTS? Where?
    Or do I get the data directly in ECC? How?
    Thank you very much!
    Best regards.
    Brando

    First of all push ECC data in to GTS server through T.code:/N/SAPSLL/MENU_LEGALR3. First click on Master data tab there enter customer/vendor number then execute.
    2-Go to document tab there enter Sales order no/PO number then execute it.
    Then go to GTS server in compliance management module you can get all the information.
    Regards
    Sitanshu Panigrahi

  • How to get rid this Warning=Sales order (SOBKZ = ) is not provided for this

    Dear Concerns
    In MB1C, Mov Type=521E, and the batch no=A.
    After entering all the required entries the systen gives me the warning and the system  save the transaction after pushing the enter button five to six times.
    Sales order (SOBKZ = ) is not provided for this goods movement.
    I want to get rid of this warning .
    So that the system could save the transaction in one click.
    Regards:Vijay

    Hi
    Can u please tell me the solution of that issue as in my case the item has to be received
    and reserved against the sales order.
    can i make my sales order item cate mark with the special stock indicator and
    does it help to solve my problem
    Yes this will only solve the problem. You need to mark your sales order item cate with special stock indicator E
    Then PGI will be smooth otherwise you can expect problem
    This reply is for the other friend
    In-IMGMaterials ManagementInventory Management and Physical Inventory---Define Attributes of System MessagesSettings for System Messages----
    Here in the new entries add message M7---374 with version as 00 and make that as error message and save it
    Regards
    Raja

  • How to display rounding value in sales order

    hi 
    i maintained each and everthing functionality in pricing procedure but it is not showing value of condition type DIFF while creating sales order so can explain this

    Hello Kamesh,
    i maintained each and everthing functionality in pricing procedure
    but it is not showing value of condition type DIFF while creating
    sales order so can explain this
    For the Rounding Condition Type "DIFF", the main controlling paramters are Requirement :-13(Rounding as perT001R), Alt Calculation Type :-16(Rounding the total) and Alt Base :-4(Net value + tax). Hope the table T001R(Rounding Rules for Company Code and Currency) has rounding entries for the combination of Company code and Currency.
    Kindly carry an analysis based on these above points and post an update here.
    Regards,
    Sarthak

  • How to get tabs in the sales order in desired manner

    hi,
      While creating sales order i want the procurement tab to come 1st.
      I found something called   ( FCode for overv.scr. UER2) in VOV8 but i dont know where to configure.
      or do i need to go for some screen exit.
      or can i use SHD0 and how for this scenrio.
    please give your valuable suggestions.
    Regards
    Anil

    As per my best knowledge ther's no such setting. Copy control works only when you are creating the delivery from the SO.
    So, I think you have two options - basically:
    - modify the already created delivery manually
    - delete the delivery and create a new one form the updated SO

  • To Get the list of sales orders for a Business partner in CRM.

    Hi all
    Is there any Function module or BAPI to get the Sales orders for a Business partner in CRM. I know there is a BAPI to get the list of sales orders for a customer in ECC, but I donu2019t know how to get the list of sales orders for a Business Partner in CRM.
    Can anybody tell me if there is an inbuilt function module or BAPI available?
    If not how can I pick the sales orders of a business partner in CRM? Between which tables should I apply a join and write SELECT statement to get list of sales orders for a business partner in CRM.

    Hi Jessica,
    Try CRM function module CRM_BUPA_READ_ORDER_OBJECTS.
    You'll get a table with the documents associated to that partner, where you can work on.
    Kind regards.

  • How to get Characteristic Values assigned to the line item of Sales Order?

    Hi,
    I want to get the Characteristic Values( Variant Configuration )assigned to First Line Item of Sales Order.
    I was using the Fn. Mod.: VC_I_GET_CONFIGURATION_IBASE,
    this fn. mod. giving all the Characters but not the assigned characteristic values.
    Is there any other way to find characteristic values of sales order.
    Thanks,
    vinayak.
    Message was edited by: vinayaga sundaram

    For example, please see this example program.
    It lists the characteristic names, the values, and the description of the values which are tied to a sales document.
    report zrich_0001.
    * Internal Table for Characteristic Data
    data: begin of i_char occurs 0.
            include structure comw.
    data: end of i_char.
    data: xcabn type cabn.
    data: begin of xcawn,
          atwtb type cawnt-atwtb,
          end of xcawn.
    data: xvbap type vbap.
    parameters: p_vbeln type vbap-vbeln,
                p_posnr type vbap-posnr.
    start-of-selection.
      select single * from vbap into xvbap
                 where vbeln = p_vbeln
                   and posnr = p_posnr.
      clear i_char.  refresh i_char.
    * Retrieve Characteristics.
      call function 'CUD0_GET_VAL_FROM_INSTANCE'
           exporting
                instance           = xvbap-cuobj
           tables
                attributes         = i_char
           exceptions
                instance_not_found = 1.
      loop at i_char.
        clear xcabn.
        select single * from cabn into xcabn
                 where atinn = i_char-atinn.
        clear xcawn.
        select single cawnt~atwtb into xcawn
                   from cawn
                     inner join cawnt
                       on cawn~atinn = cawnt~atinn
                      and cawn~atzhl = cawnt~atzhl
                          where cawn~atinn = i_char-atinn
                            and cawn~atwrt = i_char-atwrt.
        write:/ xcabn-atnam, i_char-atwrt, xcawn-atwtb.
      endloop.
    Regards,
    RIch Heilman

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • Credit value in sales order

    Hi,
    How system pick the credit value in sales order.What are the different setting required for this?
    Regards
    Prabudh

    Hi prabudh,
    Creidt value is picked up from the sales order through the Pricing procedure.... While defining the pricing procedure we maintain the sub total "A" against the Total value. This value will get updated as the creidt value......
    Regards
    Harsh

  • How to get each value from a parameter passed like this '(25,23,35,1)'

    Hi
    One of the parameter passed to the function is
    FUNCTION f_main_facility(pi_flag_codes VARCHAR2) return gc_result_set AS
    pi_flag_codes will be passed a value in this way '(25,23,35,1)'
    How to get each value from the string
    like 25 first time
    23 second time
    35 third time
    1 fourth time
    I need to build a select query with each value as shown below:-
    (SELECT t2.org_id, t4.description
    from org_name t2, ref_org_name t3, code_table t4
    where t2.att_data = t4.code
    and t3.ref_code = t2.att_type
    and t2.att_type = 25 and t3.code_type = t4.code_type
    and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q1,
    (SELECT t2.org_id, t4.description
    from org_name t2, ref_org_name t3,code_table t4
    where t2.att_data = t4.code
    and t3.ref_code = t2.att_type
    and t2.att_type = 23 and t3.code_type = t4.code_type
    and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q2,
    (SELECT t2.org_id, RTRIM(xmlagg(xmlelement(e, t4.description || ';')
    ORDER BY t4.description).EXTRACT('//text()'), ';') AS DESCRIPTION
    from org_name t2, ref_org_name t3,code_table t4
    where t2.att_data = t4.code
    and t3.ref_code = t2.att_type
    and t2.att_type = 35 and t3.code_type = t4.code_type
    and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date
    group by t2.org_id) q3,
    (SELECT t2.org_id, t4.description
    from org_name t2, ref_org_name t3, code_table t4
    where t2.att_data = t4.code
    and t3.ref_code = t2.att_type
    and t2.att_type = 1 and t3.code_type = t4.code_type
    and to_date('01-JAN-10', 'DD-MON-YY') between t2.att_start_date AND t2.att_end_date) q4
    Please help me with extracting each alue from the parm '(25,23,35,1)' for the above purpose. Thank You.

    chris227 wrote:
    I would propose the usage of regexp for readibiliy purposes and only in the case if this doesnt perform well, look at solutions using substr etc.
    select
    regexp_substr( '(25,23,35,1)', '\d+', 1, 1) s1
    ,regexp_substr( '(25,23,35,1)', '\d+', 1, 2) s2
    ,regexp_substr( '(25,23,35,1)', '\d+', 1, 3) s3
    ,regexp_substr( '(25,23,35,1)', '\d+', 1, 4) s4
    from dual 
    S1     S2     S3     S4
    "25"     "23"     "35"     "1"In pl/sql you do something like l_val:= regexp_substr( '(25,23,35,1)', '\d+', 1, 1);
    If t2.att_type is type of number you will do:
    t2.att_type= to_number(regexp_substr( '(25,23,35,1)', '\d+', 1, 1))Edited by: chris227 on 01.03.2013 08:00Sir,
    I am using oracle 10g.
    In the process of getting each number from the parm '(25,23,35,1)' , I also need the position of the number
    say 25 is at 1 position.
    23 is at 2
    35 is at 3
    1 is at 4.
    the reason I need that is when I build seperate select for each value, I need to add the query number at the end of the select query.
    Please see the code I wrote for it, But the select query is having error:-
    BEGIN
    IF(pi_flag_codes IS NOT NULL) THEN
    SELECT length(V_CNT) - length(replace(V_CNT,',','')) FROM+ ----> the compiler gives an error for this select query : PLS-00428:
    *(SELECT '(25,23,35,1)' V_CNT  FROM dual);*
    DBMS_OUTPUT.PUT_LINE(V_CNT);
    -- V_CNT := 3;
    FOR L_CNT IN 0..V_CNT LOOP
    if L_CNT=0 then
    V_S_POS:=1;
    V_E_POS:=instr(pi_flag_codes, ',', 1, 1)-1;
    else
    V_S_POS:=instr(pi_flag_codes,',',1,L_CNT)+1;
    V_E_POS:=instr(pi_flag_codes, ',', 1, L_CNT+1)-V_S_POS;
    end if;
    if L_CNT=V_CNT then
    V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS));
    else
    V_ID:=TO_NUMBER(substr(pi_flag_codes,V_S_POS,V_E_POS));
    end if;
    VN_ATYPE := ' t2.att_type = ' || V_ID;
    rec_count := rec_count +1;
    query_no := 'Q' || rec_count;
    Pls help me with fetching each value to build the where cond of the select query along with the query number.
    Thank You.

Maybe you are looking for

  • Problem creating JDBC dataview to oracle on Windows

    Hi, I'm trying to configure a JDBC dataview to an Oracle 10g database on DSEE 6.3.1 running Windows 2008 Here are the command I used: dpconf create-jdbc-data-source -b MYDBSID -B jdbc:oracle:thin://dbhost:1510: \      -J file://e:\dsee\ojdbc14.jar \

  • Import and Export with iPhoto and Raw

    I use PSE10 for AppleMac.  How do I export raw photos from iPhoto into PSE10 please, for editing?  I have set my preferences in iPhoto for editing in PSE .  The PSE edit page opens up blank - no raw picture editor or picture appears.  (I can take pic

  • Enormous And Unexplained Data Usage

    2 months ago, my blackberry started transferring impressive amounts of data, which I discovered when I got a (delayed) alert from ATT.  In one instance, per my ATT bill, the blackberry transferred 150 MB of data, in apparently 2 minutes in London, wh

  • Jar command not available

    Hi, I have a new Java programmer and I have installed the following software onto my PC: 1) Java SE Development Kit 6u1 and NetBeans IDE 5.5.1 Bundle 2) Sun Java Toolkit 1.0 for CDC 3) JBuilder 2005 Foundation Now, I am trying to make a "jar" file wi

  • Mac iPhoto vs. PC File Structure

    As a new Mac user I'm new to OS X Yosemite.  Previously, in my old PC I could view all my photos as files that I could open, delete, etc.  Now, in iPhoto, these files are no longer visible, but apparently stored elsewhere that I can't seem to referen