Populating the field value onto a field

Hi,
I have a field in the selection screen by which a date value is entered by a selecting the variant.
There is another field(which contains an server path) this needs to this we need to concatenate the date that is entered in the selection screen
If field  Date field contains u201C15th SEP 2008 u201C then field Server directory  should contain u201C/usr/sap/interfaces/dynevo/20080915.TXTu201D .
this should happen before executing the program.
Please needs some suggestions in this.
Thanks

Hi,
Use 'DYNP_VALUES_READ' Function module to read the value entered on the selection screen
refer this thread
Re: After F4IF_INT_TABLE_VALUE_REQUEST Enter Required?
You can also refer this thread
Error in FM 'DYNP_VaLUEs_READ'
then populate filename.
Regards
Manasa
Edited by: Manasa Bhaskaruni on Nov 14, 2008 12:27 PM

Similar Messages

  • How to auto populating the field in MS crm

    How to auto populating the field in MS crm

    Hi,
    To populate URL of account based on account name please refer this link.
    If you are asking about the address auto populate/complete refer this link
    To Retrieve from other entity and populate the fields, for example on entering the account name in opportunity form the fields from account form like Sector, Region can be retrieved and can be auto populated in opportunity form using Odata as follows.
    Call the function getAccountDetails in onchange event of Companyname. Do not forget to add Jquery and Json in libraries.
    function getAccountDetails() {
        var companyName = Xrm.Page.getAttribute("customerid").getValue();
        if ((companyName != null)) {
            var companyNameValue = companyName[0].name;
            var companyNameID = companyName[0].id;
            var serverUrl = Xrm.Page.context.getServerUrl();
            //The XRM OData end-point
            var ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc";
            var odataSetName = "AccountSet";
            var odataSelect = serverUrl + ODATA_ENDPOINT + "/" + odataSetName + "(guid'" + companyNameID + "')";
            //alert(odataSelect);
            $.ajax({
                type: "GET",
                contentType: "application/json; charset=utf-8",
                datatype: "json",
                url: odataSelect,
                beforeSend: function (XMLHttpRequest) { XMLHttpRequest.setRequestHeader("Accept", "application/json"); },
                success: function (data, textStatus, XmlHttpRequest) {
                    var result_account = data.d;
                    var name;
                    var Id;
                    var entityType;
                    //replace the fields with the fields on your entity
                    Xrm.Page.getAttribute("new_sector").setValue(result_account.new_Sector.Value);
                    Xrm.Page.getAttribute("new_region").setValue(result_account.new_Region.Value);                     
                error: function (XmlHttpRequest, textStatus, errorThrown) { alert('OData Select Failed: ' + odataSelect); }
    Also as another option if you donot wat the java script then you can go for a workflow to poplate, please refer this link:  https://www.powerobjects.com/blog/2013/11/25/retrieving-data-from-a-related-entity-crm-2013/
    Regards, Rekha.J

  • Idocs not populating the fields

    Hi
    We are using Extended Classic Scenario. After the shopping cart is approved, the PO is generated in the backend R/3. The PO is generated in the backend and the idoc is triggered which is sent to supplier.
    The problem we are facing is as below:
    There are some fields in the idocs which are not getting populated. We are using badi implementation BBP_PO_INBOUND_BADI in the backend. We have used both the methods BBP_MAP_BEFORE_BAPI
    BBP_MAP_AFTER_BAPI
    The table EKPO is getting updated but the idoc does not have the fields.
    Also when we are second time retriggering the output the idoc is having the required fields.
    Kindly advice.
    Thanks and Regards
    Manoj

    Hello,
    It looks the first generation occurs to early in the process.
    Can you should check the processing time you defined in condition records ?
    3 is too early, 4 should work because a commit work is done before. And at worst set it to 1 (selection report) and schedule a job to process the message.
    Rgds,
    Pierre

  • Code for populating the field

    Hi,
    can any one help me out for populating the appended field to data source.
    <u><b>My requirement:</b></u> I have enhanced the data source 2lis_11_vahdr by appending the field zzmatnr in to its extract structure, Now i want to populate this field from the field available in the MARC table. so can any one help me out the whole code for this?
    apart from this i have one another question that is if i append this field to the communication structure( like mcvbak, mcvbap... etc) then how we will populate this field.
    and what is the exact difference between appending the field to the extract structure and appending the field to the communication structure.
    Thanks

    1)Just a sample code to add old material code(zzoldmatno) to the data source
    '2LIS_02_S012'.
    The function module is EXIT_SAPLRSAP_001.
    You have write the code in the include zxrsau01.
    when '2LIS_02_S012' .
    data : it_s012biws like s012biws .
    tables : mara .
    loop at c_t_data into it_s012biws .
    l_tabix = sy-tabix.
    select single bismt from mara into mara-bismt where matnr =
    it_s012biws-matnr.
    if sy-subrc = 0.
    it_s012biws-zzoldmatno = mara-bismt .
    endif.
    clear mara-bismt .
    modify c_t_data from it_s012biws index l_tabix.
    endloop.
    2) Replicate the datasource.
    3) Now with the above code datasource R/3 part is finished.To receive the new column at the BW end you have to add a column to your ODS or infocube as well to the communication structure(say ZOLDMAT in my case) and map the new field(ZZOLDMATNO) to the field (ZOLDMAT).
    4) Activate the Transfer Rule.
    Hope this helps.
    Regs
    Gopi.

  • Populating the Lookup values in AD Child Form based logged in user

    HI,
    Below is the Lookup code(AD Groups) format.
    Codekey , Decodekey
    IT-Development , IT-Development
    IT-Testing , IT-Testing
    IT-Production , IT-Production
    HR-system , HR-system
    HR-Finance , HR-Finance
    My requirement is I need to filter the data being presented in the lookup according to the logged in user in ad child form,
    If i am logged in as xelsysadm the lookup presents all groups.
    If i am logged in as IT administroter the lookup presents only the IT Related groups(EX:IT-Development,IT-Testing....).
    If i am logged in as HR administroter the lookup presents only the HR Related groups(EX:HR-System,HR-Finance...).
    like this we have contains so many administrators.
    We are desiding the administrators based on user form field.
    The Field contains the value like HR-Related,IT-Information Technology.....
    How can i achive this?
    Thanks in advance.
    Edited by: 790561 on 4/12/2011 17:48
    Edited by: 790561 on 5/12/2011 12:02

    Hi Rajiv,
    Thank you for quick reply,
    When i am login as IT administrator and i provisioned user to AD it showing the IT Related groups in ad child form based on your Suggestion.
    If i logout and login as a HR administrator and i edit the child process form of the same user still its showing IT Related Groups only.If I revoke and provision user to ad again with HR administrator this time its showing HR Related groups in AD Child form.
    I think based on the requester its showing the values.
    But i want to filter groups based on logged in user.
    EX:If i login as IT administrator and provision the user to AD in Child form its showing the IT Related groups only its correct.
    If I logout and login as HR administrator and i edit the same user AD Child form its showing the IT related groups only its not correct.this time it shows only HR Related.
    Any solution....
    Thanks in advance.

  • Populating the Lookup values in AD Child Form

    HI,
    Below is the Lookup code format.
    Codekey , Decodekey
    IT-Development , IT-Development
    IT-Testing , IT-Testing
    IT-Production , IT-Production
    HR-system , HR-system
    HR-...... , HR-......
    HR-...... , HR-.......
    In AD Process Form one of the field containing the valuee like " IT","HR".
    My requirement is if I select the "IT" in My AD peocess form field value.....In AD child form lookup field Shows values only Starts with "IT".Below is the sample.
    IT-Development , IT-Development
    IT-Testing , IT-Testing
    IT-Production , IT-Production
    If I select the "HR" in My peocess form field value.....In AD child form lookup field Shows values only Starts with "HR".Below is the sample.
    HR-...... , HR-......
    HR-...... , HR-.......
    How can i achive this?
    Thanks in Advance.
    Edited by: 790561 on 18/09/2011 19:52
    Edited by: 790561 on 18/09/2011 21:34
    Edited by: 790561 on 19/09/2011 14:22

    Hi,
    Thanks for Reply,
    my exact requirement is as followes,
    In my environment for each department(IT,HR) having one administrator(IT Administrator,HR Administrator).
    If login as a IT Administrator and at the time of provisioning user to "AD" in Child form lookup code only shows IT Related data as below...
    IT-Development , IT-Development
    IT-Testing , IT-Testing
    IT-Production , IT-Production
    If login as a HR Administrator and at the time of provisioning user to "AD" in Child form lookup code only shows HR Related data as below...
    HR-...... , HR-......
    HR-...... , HR-.......
    How can i achive this?
    Thanks in advance.
    Edited by: 790561 on 19/09/2011 19:20
    Edited by: 790561 on 19/09/2011 21:20

  • Populating the field description on the screen

    Hi Group,
    In the program after executing on the screen I have 3 screen fields. After entering the two fields when user hit the enter it needs to retrieve third field value from the table and have to display on the screen,and again I will click execute button the program needs to run.
    But after entering the two fields and hitting the enter program executing and the third field value getting populated after the execution.
    I am using the following code:
    here in this P_scen and p_fid filed I am entering on the screen and after hitting the Enter I need to populate
    p_des before doing the execution.
    AT SELECTION-SCREEN on block selblock.
    *Fetch the the database table
      PERFORM retrieve_table  tables    it_des
                              using     p_scen
                                        p_fid
      if sy-subrc <> 0.
        MESSAGE 'Not found'.
      endif.
    * Pass the description of the scenario.
      p_des = it-desc.

    Check the FM DYNP_VALUES_UPDATE:
        ws_dyname   = 'ZSRO_MASTER_DATA'.
        ws_dynumb   = '1000'.
        ws_dynpfld-fieldname  ='PPDESC'.
        ws_dynpfld-fieldvalue =  ty_aa-name_textc.
        APPEND ws_dynpfld TO i_dnpfld.
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname               = ws_dyname
            dynumb               = ws_dynumb
          TABLES
            dynpfields           = i_dnpfld
          EXCEPTIONS
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            undefind_error       = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.

  • To find the field values of Start and End time

    Hi
    The workcenter idoc LOIWCS02 is not populating the fields
    start time BEGZT and endtime ENDZT
    Actually these fields are stored in KAPA table.i can see the field entries thru the transaction CR03 but those values are not stored in KAPA tables.
    when i click intervals and shifts tab in CR03 I can see the start time BEGZT and endtime ENDZT values but when i go to the database table KAPA these field values are empty.
    Does anybody know where to get these values
    Is SAP not storing these values
    Please let me know

    Hi
    Thanks for your reply
    I already tried that ...no data populated..it seems to be an SAP bug...we are using 4.7
    Let me know if you know any futher info on this
    Thanks
    MM

  • Problem with READ Statement in the field routine of the Transformation

    Hi,
    I have problem with read statement with binary search in the field routine of the transformation.
    read statement is working well when i was checked in the debugging mode, it's not working properly for the bulk load in the background. below are the steps i have implemented in my requirement.
    1. I selected the record from the lookuo DSO into one internal table for all entried in source_packeage.
    2.i have read same internal table in the field routine for each source_package entry and i am setting the flag for that field .
    Code in the start routine
    select source accno end_dt acctp from zcam_o11
    into table it_zcam
    for all entries in source_package
    where source = source_package-source
         and accno = source_package-accno.
    if sy-subrc = 0.
    delete it_zcam where acctp <> 3.
    delete it_zcam where end_dt initial.
    sort it_zcam by surce accno.
    endif.
    field routine code:
    read table it_zcam with key source = source_package-source
                                                 accno  = source_package-accno
                                                 binary search
                                                 transportin no fields.
    if sy-subrc = 0.
    RESULT  = 'Y'.
    else.
    RESULT = 'N'.
    endif.
    this piece of code exist in the other model there its working fine.when comes to my code it's not working properly, but when i debug the transformation it's working fine for those accno.
    the problem is when i do full load the code is not working properly and populating the wrong value in the RESULT field.
    this field i am using in the report filter.
    please let me know if anybody has the soluton or reason for this strage behaviour.
    thanks,
    Rahim.

    i suppose the below is not the actual code. active table of dso would be /bic/azcam_o1100...
    1. is the key of zcam_o11 source and accno ?
    2. you need to get the sortout of if endif (see code below)
    select source accno end_dt acctp from zcam_o11
    into table it_zcam
    for all entries in source_package
    where source = source_package-source
    and accno = source_package-accno.
    if sy-subrc = 0.
    delete it_zcam where acctp 3.
    delete it_zcam where end_dt initial.
    endif.
    sort it_zcam by surce accno.
    field routine code:
    read table it_zcam with key source = source_package-source
    accno = source_package-accno
    binary search
    transportin no fields.
    if sy-subrc = 0.
    RESULT = 'Y'.
    else.
    RESULT = 'N'.
    endif.

  • Auto-populating Infopath fields from a Sharepoint list after selecting a drop down

    I currently have two lists one titled 'Book of Work' which holds details around on-going projects and the other titled 'Book of Work Amendments' which are requests submitted by users to change project details (through an infopath form).
    There is a column in the BoW Amendments list entitled 'Select Project' which has a lookup to 'Project Name' in the BoW list. The aim is that when a user chooses an option from the 'Select Project' drop-down, other fields in the form such as 'Project Manager',
    'Project Description' will be automatically populated with data from that row in the BoW table.
    I have connected both Sharepoint Lists as data connections with BoW Amendments being the primary and BoW the secondary. If we take the Project Manager field as an example the method I have attempted is as follows:
    . Create a rule with condition Select Project is not blank
    . Action - Set a field's value: Field: Project Manager (BoW Amendments - Primary) Value:
    Project Manager (BoW - Secondary) Add Filter: Project_Name (BoW - Secondary) =
    Select Project (BoW - Primary)
    Currently this is not populating the field when the project is selected in the drop down, any assistance would be greatly appreciated.

    Hi Josh,
    This should be straight forward. You do not need BOW Amend data connection. You are creating requests in this list so this will be your Main Data Connection.
    When creating the rule on the drop down, select Action:
    Condition: anytime the value changes, Set a field's value - Project Manager (Main); Value - Project Manager(BOW) where Project[BOW] = Project [Main]
    Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Comparing and picking the right value form one of the line item in a doc.

    Hi Gurus,
    I have requirement such that I have to show the tax jurisdiction code of only one item. That is if there are 5 line items with in a document and each one has diffeerent tax jurisdiction code, then we should be showing only one tax jurisdiction code for a document. Line items are not displayed in report. The condition to pick up tax jurisdiction code is the one which has least ending zeros.
    Supppose
    Doc1          Item          Tax Jurisdiction code
    1800000002       1          CNQC00000000000
    1800000002       2          CNQC00000000000
    1800000002       3          CN0000000000000
    1800000002       4          CNQC00000000000
    1800000002       5          TXJOHNCLEBUR000
    I have to display  the value of tax jurisdiction code corresponding to item 5  as its has least  zeros in it.
    So what I am trying to do is add another custom z object tax jurisdiction code and the value for this is populated using a routine in the update rules, such that comparing all the tax jurisdiction code for all the corresponding items in a document.
    Now the question is if I am reading all values of document no. line item and tax jurisdiction code into an internal table form communication structure for a data package. And in the update rule I will be writing a routine comparing the values of tax jurisdiction code from internal table and populating the desired value. Now the big question for me is if there are two line items of a document in one data package and another 3 line items of the corresponding same document in data package 2 then how can we compare the values of Tax jurisdiction code of all the 5 line items of a document.
    If this can be achieved using customer exit on the front end let me know and just inputs how the abap code would be or if not do I have to write abap in updates rules. I just want to know how to compare different values of Tax Jurisdiction code and select the one with has least ending zeros. For information the tax jurisdiction code is of type character and length 15.
    Any help is really appreciated.
    Thanks,
    Raj

    Yes, it's possible. Just use a regular text item. Create an LOV using the LOV wizard. When you define the query for the LOV's record group, enter a statement that selects from the other database table. Set the return value of the appropriate LOV column to be the text item on the form. Finally, assign the LOV to that text item, so that the LOV pops up when the user presses the LOV key with the cursor in that text item. You can also set the LOV so that it automatically displays when the cursor enters the text item.
    Just look up LOV in online help if you need more info.

  • In query ( * )asterisk sign is populating instead of values.

    Hi,
    In a Bex Query,i have currency & units in key figures(it is calculated Key Figure),output is populating as(*)instead of values for some records.Many records it is populating the correct value.I have tried Currency conversion also but all the currency are converting in to one currency...so output is not matching the task.
    How to solve this issue?

    If you are running your query on the Web, you can right-click on () and choose "Explain Key Figure" or something like this from pop-up menu. This should help you to find KFs causing your () value.
    Regards,
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/37289">vitaliy</a>

  • How to set the default value in dashboard prompt?

    Hi there,
    In my Dashboard prompt I'm getting values like:
    Mar 2010
    Apr 2010
    May 2010
    Jun 2010
    How to set the default value to the current month (Jun 2010). I don't want to use "specific value". I want to use the "SQL Result" for populating the default value.
    Appreciate your help

    hi,
    you can create a Repository variable current_month with the expression as
    select to_char(trunc(sysdate),'Mon')from dual
    and use this in the prompt "Default to" Server variable and use this repository variable.
    hope this helps.
    cheers,
    vineeth

  • APEX4: Populating fields from database based on the SelectList value

    Hi,
    I've a Select List and 4 Text Fields on a form. On selecting a value on the Select List, I've to populate the Text Fields by fetching its values from the database by using the Select List value as the primary key.
    How can I do this in APEX 4?
    Thanks for the help.
    --Hozy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thank you so much for helping me out.
    Yes, it comes from the same table account.
    These are the sqls to fetch the 4 values in each dynamic action:
    select a.address1 from account a where a.account_id = :P14_ACCOUNT
    select a.address2 from account a where account_id = :P14_ACCOUNT
    select a.city from account a where a.account_id = :P14_ACCOUNT
    select a.postal_code from account a where a.account_id = :P14_ACCOUNT
    Right now, I only have one dynamic action for text field P14_BILLING_ADDRESS_1, and even for just one the value is not showing up in it. Please note that when I added for dynamic actions, the the values were showing up in all the 4 text fields before.
    Then when I added 4 more dynamic actions for a different Select List (P14_CUSTOMER), but for the same text fields, it all stopped working. And now even a single dynamic action is not working. This is how the sql for next 4 dynamic actions looked like:
    select c.address1 from customer c where c.customer_id = :P14_CUSTOMER
    select c.address2 from customer c where c.customer_id = :P14_CUSTOMER
    select c.city from customer c where c.customer_id= :P14_CUSTOMER
    select c.postal_code from customer c where c.customer_id= :P14_CUSTOMER
    }

  • How to keep the field value in the forms for one week

    I have an application that when the user logs on to it , it shows all the documents that are in the current dept.
    the form has the following fields:
    document no
    sent date
    assigned to
    dep_LOV
    and a check box
    if a user clicks the check box and assignes the document to another dept by cliking the LOv then the assigned to field should be populated with the new value and the sent date should be today's date(sysdate). the requirment is that once the user assignes the documnet to certain depts (for example sales dept) the assigned to field and the sent date should show up in the form for one week and the user should be able to see that data in the form the next time she /he logs onto the application. the one week time is to make sure the documcnt has reached the assigned dept. after one week from today's date the updated assigned_to field and the document no should not display on the form. During the one week if the user logs on to the form again that particular document and the assigned to and sent to fields shoould be grayed out and shhould not be updatable. I will greatly appreciate any suggetion as of what to do to solve this problem. it is urgent. Pleade help

    -> so you are saying that I should have a block level post_query trigger and put the where clause in it?
    No. Post-query trigger runs AFTER the query has been executed, and it runs once for each row fetched. It is for other purposes, NOT for setting a where clause.
    -> Plus i want to be able to gray out the field once populated with the sales dept.I have come up with the following code:
    Your Set_item_instance_property is almost correct. And THAT line would go into the Post-Query trigger. This is what you might use:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> Set_item_instance_property ('docs.assigned_to',:system.trigger_record, Enabled,Property_False);</font></pre>
    Please watch your use of underscore, dashes, commas and parentheses: _ - , ( )
    The way to set your default where clause would be the following, and you should do it in the key-exeqry trigger, or someplace similar:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> set_block_property('DOCS', default_where,
    'NVL(sent_date,sysdate) >= sysdate-7' );
    Go_block('DOCS');
    Execute_Query;</font></pre>
    I used the NVL function so your select will show rows where sent_date is null OR sent_date has a value that is within 7 days prior to the current date.
    What is the field :docs.assigned_to used for? If you want to include ONLY rows that are assigned to a particular person, then your where clause might be:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> 'assigned_to = :ctrl.assigned_to and NVL(sent_date,sysdate) >= sysdate-7' </font></pre>
    and you should have a control block with the assigned_to field in it, where the user can enter a value before querying the DOCS block.

Maybe you are looking for

  • Source Directory same in FIle to IDOC

    Hi Friends Can we have a same File Name and same Source Directory for 2 different scenarios? Means in my communication channel i am putting this Source Directory : /POS/input/test File Name:     *.DAT for one let us say ABC file to xyz-iDOC scenario

  • Idoc to File(AS2)

    Hi, I am workingon IDOC to File(AS2) scenario. When i execute the mapping in IR it executes succesfully and gives the data in the specified File format. but when i test the interface, i am getting the output file in IDOC format where in  it has to be

  • Where to buy plastic caps for AC adapter plug?

    I like the plastic caps that pop onto the connectors that plug directly into an iBook/Powerbook jack. I'll probably lose 'em, and I'd like to get replacement caps in bulk quantity (even a purchase of 100+ caps might be acceptable to me - I lose 'em T

  • Mass change in routing - operation details - machine times

    Dear all, I want to do mass change in machine times of aprox 20 materials in routing. So can anyone guide me for the procedure. Thanks. Edited by: sapsarang on Aug 19, 2009 1:39 PM

  • Major iWeb issues

    I have a few issues maybe someone can help, I have created a website to be published to an FTP server. iWeb asked if it should replace the old website. First issue the upload took ages only to come up with the error cannot resume publishing, near the