How to assign values to UDf of sales quotation at Doc level using UIAPI

HI,
I have a custom form, viz. Sales feedback.
When the user clicks button "Copy to sales quotation" of this form,
I create an instance of Sales quotation form and open it in SAPB1.
I have to populate all sales feedback data to this form(Sales quotation form's UPAPI).
What is the simpest way to do this?
Also, How can I assign UDF values to sales quotation from sales feedback.
Regards
Trupti Mahurkar

Hi Trupti,
for assign UDF values, trying with:
Dim oTargetDoc,oSourceDoc As SAPbobsCOM.Documents
            oTargetDoc.UserFields.Fields.Item("myUDF").Value=  oSourceDoc.UserFields.Fields.Item("myUDF").Value()

Similar Messages

  • How to assigne value in sub record type

    Dear below mention record type database,now i want to assigne value in payr_rec type,in this recrocrd type have one column party_id,but how can assigne value int this field ,
    TYPE group_rec_type IS RECORD(
    group_name VARCHAR2(255),
    group_type VARCHAR2(30),
    created_by_module VARCHAR2(150),
    -- Bug 2467872
    mission_statement VARCHAR2(2000),
    application_id NUMBER,
    party_rec PARTY_REC_TYPE := G_MISS_PARTY_REC
    please guide.

    to get the desired default party_rec attribute value, just assign the "sub-record" attribute defaults as desired; PL/SQL will assign a default (non-null) record as the party_rec value using those attribute defaults:
    create or replace package P_Test_It
    as
         type party_rec_type is record (
              dummy varchar2(1) default 'X'
         type group_rec_type is record (
              group_name VARCHAR2(255),
              group_type VARCHAR2(30),
              created_by_module VARCHAR2(150),
              -- Bug 2467872
              mission_statement VARCHAR2(2000),
              application_id NUMBER,
              party_rec PARTY_REC_TYPE
    end;
    set serveroutput on
    declare
         rec p_test_it.group_rec_type;
    begin
         dbms_output.put_line(rec.party_rec.dummy);
    end;
    X
    PL/SQL procedure successfully completed.Hope it helps.
    Gerard

  • How to assign values for more than one field

    Hi,
    I have written following code
    constants: fieldname(30) value '(SAPMF02D)KNA1-AUFSD'.
    constants: fieldname1(30) value '(SAPMF02D)KNA1-LISFD'.
    constants: fieldname2(30) value '(SAPMF02D)KNA1-FAKSD'.
    field-symbols: <L_FIELD>  TYPE ANY.
    field-symbols: <L_FIELD1> TYPE ANY.
    field-symbols: <L_FIELD2> TYPE ANY.
          Assign (fieldname) to <l_field>.
          <L_FIELD> = 'ZB'. " value according to your requirement
          Assign (fieldname1) to <l_field1>.
          <L_FIELD1> = 'ZB'.
    while debugging <l_field1> is not assinging (fieldname1).
    Im able to assing for (fieldname).
    how to assign value for (fieldname1).
    plz suggest me to assign values for more than one field.
    Regards,
    Brahmaji

    Hello,
    Because there is no field name called LISFD in KNA1. Actually you misspelled the field name.
    It is KNA1-LIFSD

  • How to assign values to server group when you parallelly client-copying

    Hello all,
    I'm now trying to create server group.
    Currently, I use serial process, or default settings, when client-copying.
    But I want to implement this in parallel processes.
    Due to this, I have to create server group and assign a lot of values to something I don't know!
    I want to create a server group, but don't know how to assign values to ones like "Max. requests in queue", "Max. no of logons" and so on.
    Could you please advise me how to allocate values to the resourses shown below;
    Advanced : 1 *I think "1" is the flag for advanced settings
    Max. requests in queue
    Max. no.  of logons
    Max. disp. of own logon
    Max. no. of WPs used: *should be the total of SM50, I guess
    Min. no. of free WPs
    Max. no. of comm. entries
    Max. wait time
    thanks in advance,
    Hozy

    Hi,
      Would you check this [Parallel Processes |http://help.sap.com/saphelp_sm32/helpdata/EN/e8/df959834ac11d586f90000e82013e8/frameset.htm] and [Parallel processes FAQ|http://www.saptechies.com/ccinfo-parallel-processes-faq/] i hope will get some hint.
    Regards
    Mohan Rao

  • How to assign values to Dynamic VO.

    Hi All,
    I have created a Dynamic VO and i have created 2 attributes(name and age) for it.
    Can i create this dynamic VO in Process form request of one of the CO class?
    Please let me know how to assign values to it......and display it and the page.?
    Thanks,
    Sowmya.

    Mukul
    I am trying to achieve something like below:
    Creating a Dynamic VO in my extended controller's ProcessRequest() method and attaching it to a MessageChoiceBean. In ProcessFormRequest() method based on some condition i have to change my Dynaic VO's whereClauseParam and re-execute it so that it will show some different set of values. Below is the code which i used. But after re-executing it my LOV is still showing old set of values. I have posted a query regd. the same but dint get much help. Kindly let me know, if you have any comments. Also Please find the link to my earlier post.
    Link: Re: Re-executed dynamic VO not showing new values
    * CODE *
    ProcessRequest()
    ViewObject vo = (ViewObject)am.createViewObjectFromQueryStmt("dummyVO","SELECT MEANING AS VALUE FROM HR_LOOKUPS WHERE LOOKUP_TYPE = :1");
    vo.setMaxFetchSize(-1);
    vo.setWhereClauseParam(0,"input1");
    vo.executeQuery();
    OAMessageChoiceBean mesBean=(OAMessageChoiceBean)webBean.findIndexedChild(webBean,"DemoChoiceItem");
    mesBean.setPickListCacheEnabled(false);
    mesBean.setPickListViewObjectDefinitionName("dummyVO ");
    mesBean.setPickListViewUsageName("dummyVO ");
    mesBean.setListDisplayAttribute("VALUE");
    mesBean.setListValueAttribute("VALUE");
    ProcessFormRequest()
    If the event is fired
    S.O.P(....);
    ViewObject vo1 = (ViewObject)am.findViewObject("dummyVO");
    vo1.clearCache();
    vo1.reset();
    vo1.setWhereClause(null);
    vo1.setWhereClauseParams(null);
    vo1.setWhereClauseParam(0,"input2");
    vo1.executeQuery();
    S.O.P(....);
    Thanks

  • How to assign Values to nested table and pass as parameter to procedure?

    How to assign Values to nested table and pass as parameter to procedure?
    Below is the Object and its type
    create or replace type test_object1 as object
    val1 varchar2(50),
    val2 varchar2(50),
         val3 varchar2(50)
    create or replace type test_type1 is table of test_object1;
    create or replace type test_object2 as object
    val1 varchar2(50),
    val2 varchar2(50),
         val3 varchar2(50)
    create or replace type test_type2 is table of test_object2;
    GRANT ALL ON test_object1 TO PUBLIC;
    GRANT ALL ON test_type1 TO PUBLIC;
    GRANT ALL ON test_object2 TO PUBLIC;
    GRANT ALL ON test_type2 TO PUBLIC;
    here is the table made of object type:
    create table test_object_tpe
    sl_num NUMBER,
    description VARCHAR2(100),
    main_val1 test_type1,
    main_val2 test_type2
    NESTED TABLE main_val1 STORE AS tot1
    NESTED TABLE main_val2 STORE AS tot2;
    here is the procedure which inserts values into nested table:
    PROCEDURE INSERT_TEST_DATA(sl_num IN NUMBER,
    description IN VARCHAR2,
    p_main_val1 IN test_type1,
    p_main_val2 IN test_type2
    IS
    BEGIN
    FOR rec in p_main_val1.first..p_main_val1.last
    LOOP
    INSERT INTO xxdl.test_object_tpe
    sl_num,
    description,
    main_val1,
    main_val2
    VALUES
    sl_num
    ,description
    ,test_type1 (test_object1(
    p_main_val1(rec).val1,
                                       p_main_val1(rec).val2,
    p_main_val1(rec).val3
    ,test_type2 (test_object2( p_main_val2(rec).val1,
                        p_main_val2(rec).val2,
                        p_main_val2(rec).val3
    END LOOP;
    commit;
    END INSERT_TEST_DATA;
    here is the anonymoys block which assigns values to the object type and pass values into the procedure:
    set serveroutput on;
    declare
    p_sl_num NUMBER := 1001;
    p_description VARCHAR2(50) := 'Testing Val1';
    inval1 test_type1 := test_type1();
    inval2 test_type2 := test_type2();
    begin
    inval1(1).val1 := 'testx1';
    inval1(1).val2 := 'testx2';
    inval1(1).val3 := 'testx3';
    inval2(1).val1 := 'testy1';
    inval2(1).val2 := 'testy2';
    inval2(1).val3 := 'testy3';
    CSI_PKG.INSERT_TEST_DATA(sl_num => p_sl_num,
    description => p_description,
    p_main_val1 => inval1,
    p_main_val2 => inval2
    end;
    Can anybody correct me.
    Thanks,
    Lavan

    Thanks for posting the DDL and sample code but whenever you post provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    >
    How to assign Values to nested table and pass as parameter to procedure?
    >
    Well you are doing almost everything wrong that could be done wrong.
    Here is code that works to insert data into your table (the procedure isn't even needed).
    declare
    p_sl_num NUMBER := 1001;
    p_description VARCHAR2(50) := 'Testing Val1';
    inval1 test_type1 := test_type1();
    inval2 test_type2 := test_type2();
    begin
    inval1.extend();
    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    inval2.extend();
    inval2(1) := test_object2('testy1', 'testy2', 'testy3');
    INSERT INTO test_object_tpe
    sl_num,
    description,
    main_val1,
    main_val2
    VALUES
    (p_sl_num, p_description, inval1, inval2);
    commit;
    end;
    /See Example 5-15 Referencing a Nested Table Element in Chap 5 Using PL/SQL Collections and Records in the PL/SQL doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/collections.htm#CJABEBEA
    1. You don't even need the procedure since all it does is a simple INSERT into the table which you can do directly (see my code above)
    inval1(1).val1 := 'testx1';There is no element one (1) of 'inval1' since you haven't created any elements yet. You need to EXTEND the collection to add an element
    inval1.extend();And then there is an empty element but 'inval1' is a container for objects of type 'test_object1' not for scalars like 'val1', 'val2', and 'val3'.
    So you can't do
    inval1(1).val1 := 'testx1';You have to create an instance of 'test_object1'
    inval1(1) := test_object1('testx1', 'testx2', 'testx3');And so on for the other collection
    You don't need the procedure (as my sample code shows) but once you populate the variables properly it will work.

  • How to assign values to JTable using mysql database

    how to assign value to JTable using mysql...

    Search the forum. You use the values of the "ResultSet" to create a "DefaultTableModel" which you then add to the "JTable".
    I'll let you pick the search keywords to use, which I've suggested above. You can also throw in my userid if you want to specifically look for my solution.

  • How can we reject an already approved sales quotation and sales order

    Hi,
    Could anyone please tell me how can we reject an already approved sales quotation and sales order.
    Thanks and Regards
    Mahavir

    Hi,
    in the document flow : i am finding documents which are given below :
    Serv. notif.      00015773                                                     
    Qt For NewConnection 20022016  23.04.08 Completed  
    Order New Connection  22460       23.04.08 Open                 
    Z New Connection  90022430   23.04.08 FI doc. not Required 
    Cancel. Invoice (S1) 90023731  19.07.08 FI doc. not required 
    I have run VF11 for document no. 90023731 .
    But when i was running VL09 i just gave the shipping point and execute the transaction.
    Then i did not find any document for that selection.
    Please guide .
    Thanks and Regards

  • How to Assign Profit Center to a Sales district

    Hi,
    How to Assign a Profit Center to a Sales District thru standard configuration.

    Have you checked in IMG path and observed where we assign Profit Center?  Please do some analysis before posting here.
    G. Lakshmipathi

  • How to assign values to extended segments in an IDoc Orders05.

    Hi All,
    I am working for an oil industry client. I have a requirement to develop a Sales order interface (I am using basic type ORDERS05). After analysing the segments and fields of this basic type, I understood I need to 2 extra custom segments (for IS oil specific fields like 'CONTACT PERSON), 'Billing block' and 'Created by' fields in HEADER & 'Excise Duty Handling type', validation type in ITEM level).
    <each segment for a Header and a Item>
    I have extended the IDoc. But I am unaware how to fill up these custom segments. I understand there are exits in 'IDOC_INPUT_ORDERS'.
    Please suggest me the steps to be considered in the exits.
    Appreciate the <removed by moderator> response.
    Thanks and Regards,
    Kbip
    Edited by: Thomas Zloch on Nov 1, 2011 10:18 AM

    Hi,
    Yes I tried this option. But I have come across this error 'No batch input data for screen SAPMV45A 8001'. This must be because the values are fed in wrong screen fields. But When I cross-checked the internal table BDC_DATA in the program before CALL TRANSACTION and the recording in SHDB separately, the screen numbers are different. I am wondering how to find the exact fields which is to be filled up.
    Note: I am creating Sales Order with reference to a Contract. Do we need to do any special treatment for this?
    Thanks

  • How to assign values for boolean array in LabVIEW?

    I want assign values for boolean array.Iam not able to do that.For each boolen i want to assign each value.Plz help me......
    Please Mark the solution as accepted if your problem is solved and donate kudoes
    Solved!
    Go to Solution.

    Hi agar,
    values in an array are "assigned" by building an array (using BuildArray) or by replacing values in an existing array (ReplaceArraySubset)!
    Good starting point could be this...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to assign values to a work area which is a Field Symbol?

    Hello Experts!
    I really need your help! this is the problem:
    I need to assign values to fields into a work area which is a field symbol. The values come from a flat file I uploaded and as I can't know the length I had to build the structure dynamically ( That's why I'm using FS). Each field comes from the file separated by ';', I tried using the SPLIT sentence:
    "SPLIT text AT ';' INTO TABLE <dyn_table>." but the values are assigned vertically into the same field instead of horizontally into each field of the table(field-symbol table).
    I know the name of the field dynamically
    (a TEXT + number) and I know I can't do this
    <dyn_wa>-TEXT1 or field_name = 'TEXT1' <dyn_wa>-(field_name).... ohhh I'm blocked, I don't seem to find the answer, please help!
    Thanks in advance!!
    Frinee

    Now that you have a table with the values, you can move them to the work area.
    data: begin of wa,
          fld1(20) type c,
          fld2(20) type c,
          fld3(20) type c,
    *     and so on
          end of wa.
    data: istr type table of string with header line.
    field-symbols: <fs>.
    split text at ';' into table istr.
    loop at istr.
    assign component sy-tabix of structure wa to <fs>.
    if sy-subrc <> 0.
    exit.
    endif.
    <fs> = istr.
    endloop.
    write:/ wa-fld1, wa-fld2, wa-fld3.
    Now, WA has the values in a horizontal fashion.
    Regards,
    Rich Heilman

  • How to get Header Footer fields on Sales Quotation

    Dear All,
                 I have to use Header and Footer for  Sales Quotations.(Text can be vary from quotation to quotation).  Can I used Header and Footer fields of Sales Quotation Table.If yes then how both fields can appear on Sales Quotation form for input text?
    Regards,
    Ghazanfar

    I got it..On right clicking on the Sales Quotation Form.There is an option of "Opening and Closing Remarks".

  • Approval for Sales Quotation, Invoice & Delivery Level

    Hi ,
    In my Business Scenario the client want to approval strategy in different level
    1. Sales Quotation Approval from HOD.
    2. In  Delivery Level they want 3 types Approval like Sales HOD, Customer & Quality HOD.
    3. In Invoice Level they required FI HIOD approval
    please guide me how to Configure in the SAP step by step becuase i m new to this configuration.

    Please search the forum with the text "Sale Order Release strategy".  You can see lot of threads discussed on this topic.  Take the inputs from there.  Adopt the same logic to quotation and delivery also.
    thanks
    G. Lakshmipathi

  • How to assign values into  sap idoc

    Dear all,
         I have created Purchase order.   My PO number is xxxx569.  I have created PO using ME21N.   In this ME21N i have give material,deliver date,price,PO Quantity. 
        My actual assignment is whatever PO quantity may give in ME21N , but in idoc it should come some constant value like 1000,2000.
       Tell procedure how to do.
    With Regards,
    Baskaran.

    Hi,
    Just check where is your IDOC getting populated.
    You can find this by searching for FM 'MASTER_IDOC_DISTRIBUTE'  or just by fetching the name of your IDOC type or message type.
    or trigger a IDOC in debugging mode via tcode WE19.
    When you get that, just check where the quantity field is getting filled. Here you can give your desired value to the IDOC.
    Hope it helps.
    Thanks,
    Daya.

Maybe you are looking for

  • Calling BPEL WSDL form ESB(Urgent)

    Hi, Firstly I am new to BPEL. This question might be very simple. I need the solution ASAP. Coming to the usecase. I have one service "A" in ESB and other service "B" in BPEL. To make it simple I need to listen a file using a file adapter in service

  • Siebel Marketing ESD not sending Email

    I have installed Siebel Marketing and configured it to send email through launching campaigns. Without intervention of ESD, my emails through F9 (Menu bar->File->Send Email) goes fine but when i send it through a campaign it is not received at the ot

  • Quantity/value updating

    Dear expert: i create a PO (with account assignment) with a material belongs to a material type has not set quantity and value updating. i get a material document when i do goods receipt against this purchase order. i know there will no quantity and

  • De Maverick  a Snow leopard

    Estimados una consulta : es posible volver a Snow leopard  desde OSX Maverick  con los discos de instalación de Snow leopard?? Muchas gracias

  • IWork 06 won't open on Mac Pro

    New Mac Pro. iWorks 06 (Keynote 3.0.2 and Pages 2.0.2) won't open... "not supported on this architecture". Tried reloading iWorks twice from original disk. Says "successful". Isn't. Can't see or use my past presentations. Help!