Copying CRMD_SERVICE_ H fields

Hi,
I have extended tables CRMD_SERVICE_H and CRMD_SERVICE_I for header level and item level enhancements in service order.
For copying one service order to another, I have used CRM_COPY_BADI , method SERVICE_I to copy item fields.
But for copying the extra header fields I don't find any methods...How do we copy the SERVICE_H fields?..
Please help..
Regards,
Annu

   METHOD if_ex_crm_copy_badi~orderadm_h.
  DATA ls_service_h_o TYPE crmt_service_h_wrk .
  DATA ls_service_h_n TYPE crmt_service_h_com .
  DATA lt_input_field TYPE crmt_input_field_names_tab .
  DATA ls_input_field TYPE crmt_input_field_names .
  DATA lt_fcat TYPE lvc_t_fcat .
  DATA ls_fcat TYPE lvc_s_fcat .
  CLEAR ls_service_h_o .
  CALL FUNCTION 'CRM_SERVICE_H_READ_OW'
    EXPORTING
      iv_guid                  = is_ref_orderadm_h-guid
    IMPORTING
      es_service_h_wrk         = ls_service_h_o
    EXCEPTIONS
      service_header_not_found = 1
      OTHERS                   = 2.
  IF sy-subrc = 0 .
    MOVE-CORRESPONDING ls_service_h_o TO ls_service_h_n .
    ls_service_h_n-ref_guid = cs_orderadm_h-guid .
    ls_service_h_n-ref_kind = 'A' .
    ls_service_h_n-mode = cs_orderadm_h-mode .
    REFRESH lt_fcat . CLEAR ls_fcat .
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
      EXPORTING
        i_structure_name = 'CRMT_SERVICE_H_COM'
      CHANGING
        ct_fieldcat      = lt_fcat.
    LOOP AT lt_fcat INTO ls_fcat.
      IF ls_fcat-fieldname+0(1) = 'Z' .
        ls_input_field-fieldname = ls_fcat-fieldname .
        APPEND ls_input_field TO lt_input_field . CLEAR ls_input_field .
      ENDIF.
      CLEAR ls_fcat .
    ENDLOOP.
    CALL FUNCTION 'CRM_SERVICE_H_MAINTAIN_OW'
      EXPORTING
        is_service_h_com     = ls_service_h_n
      CHANGING
        ct_input_field_names = lt_input_field
      EXCEPTIONS
        header_change_error  = 1
        header_create_error  = 2
        error_occurred       = 3
        OTHERS               = 4.
  ENDIF.
ENDMETHOD.

Similar Messages

  • Adobe Bridge CC : metadata copy from one field to another for multiple files

    So I am using Bridge CC for managing audio files and have many many MP3's that I need to copy or move one field of metadata to another.
    ie:  copy "Audio Artist" field to "IPTC Core Creator" Field
         move "IPTC Core Description" to "Video Log Comment" field
    Is there a script I can add that will let me select multiple files, and have it copy or move all the info from one of these fields to another?
    Thanks
    Scott
    [email protected]

    Scott, I did have a go at this but I can't get the right path to the logComment in the XMP…
    Coping artist to creator works fine… If I find the solution I will post back…

  • Copy MM02 custom fields to MM17

    Hi Friends,
    My Requirement is like this:
    In the MM02 transaction : MM02 -> basic data2: In the Reporting and Interfacing block, I have 2 custom fields, which were there in MARA as Z fields in .Append structure.
    I need to populate(copy) these two fields in the Fields Tab in MM17 transaction.
    First of all, let me know is this possible, if yes, how it can be achieved?

    Here are some notes I have from when I recently added a new screen/subscreen to Material Master transactions.  Hopefully this information will help you.
    This guide should be used in conjunction with OSS note 44410 and IMG notes Logistics->Logistics Material Master->Material->Configure Customized Material Master.
    Online Maintenance.
    1. Add fields to append structure ZAEMARA.
    Use data dictionary maintenance u2013 SE11
    2. Generate table MARA.
    3. Add fields to view MARU and generate.
    Use data dictionary maintenance u2013 SE11.
    4. Create new sub-screen or add new fields to screen SAPLYMM1 9001.
    Use Screen Painter u2013 SE51.
    Change flow logic to add fields to field: statement and to add any validation required. Generate screen.
    If this is the first time additional data has been added to material master it will be necessary to create a new function group and associated programs. See Configure Customised Material Master paragraph Requirements.
    5. If new sub-screen, add to Customer main screen.
    Transaction OMT3.
    Double click on u2018Std industry sequenceu2019.
    Choose customer screen and Details.
    Change the first occurrence of 0001 (blank screen) to new screen number.
    Save.
    Back arrow.
    Click on Transport button and choose required transport.
    6. To include in 'Copy with Reference' processing - MM01, add new MARA fields to table T130F. (in each client)
    Use Transaction SM31. (make a copy of another ZZ field by typing over existing name).
    Add to transport manually:- R3TR TABU T130F + individual keys
    7. Test Material create, change, display.

  • How can I have text from multiple fields on one layer, copy to one field on another layer?

    A little help please as it's been years since I've done any coding of any sort.
    So I have a 4 page document with various field types.  I have a document script that gets "TodaysDate" that works perfectly and a few other scripts as well.
    So what I'm trying to do is find a work around for the following:
    I have 3 fields - SURNAME, FIRSTNAME & dob.
    And I want what is typed into these fields to populate into 1 field.  And according to this tutorial (http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript) it's not exactly possible.  At least I think that's what it says.
    However I'm hoping that maybe I could have a Submit button at the end of that document that when clicked would copy the text from those 3 fields (that I would have on 1 layer) into 1 field on a 2nd layer.  Is that even possible??
    I'd also like to have the document Print, Save (using the text in the field on the 2nd layer as the file name), Email (using the text in the field on the 2nd layer as the subject line) and Export to a specific Excel spreadsheet. 
    I don't want much do I?
    I'm using Acrobat 9 Pro on a Windows PC but also have access to Acrobat 8 Professional.  And I'm going to want the form to run in Acrobat Reader X.
    So far I have for the 3 fields into 1 on another layer:
    function buttonClick(){
    if(buttonClick==false)
    event.value=this.getField("SURNAME"+"-"+"FIRSTNAME"+"-"+"dob").valueAsString;
    But I have no idea how to call the event.value from 1 layer to another or if any of that code above would even work at all.
    I have a script that I believe will work perfectly for the Save and Email function:
    Using the “doc.submitForm()” function
    // This is the form return e-mail. Its hardcoded
    // so that the form is always returned to the same address
    // Change address on your form
    var cToAddr = "[email protected]";
    // First, get the client CC e-mail address
    var cCCAddr = this.getField("ClientEmail").value;
    // Now get the beneficiary e-mail only if it is filled out
    var cBenAddr = this.getField("BennyEmail").value;
    if(cBenAddr != "") cCCAddr += ";" + cBenAddr;
    // Set the subject and body text for the e-mail message
    var cSubLine = "Form X-1 returned from client"; var cBody = "Thank you for submitting your form.\n" + "Save the mail attachment for your own records";
    //** Send the form data as an XML attachment on an e-mail
    // Build the e-mail URL
    var cEmailURL = "mailto:[email protected]?cc=" + cCCAddr + "&subject=" + cSubLine + "&body=" + cBody;
    this.submitForm({
                cURL: cEmailURL,
                cSubmitAs:"XML",
                cCharSet:"utf-8"
    I'll work out the Export to Excel thing later as I've seen many tutorials on that.  But can I do the 3 fields to 1 thing at all?
    Please Help!!!

    Sorry Gilad.  I hope I'm not getting on your nerves (too much) but as I said it's been a while since I did any formal code. And I'm trying to do this code for a work document but I'm doing it in amongst so many other things I do for my job that it's difficult to get the time to concentrate for longer than 5 mins.
    I didn't get a chance to try that code until just now.  I guess I asked again as I thought (from what I'd read) that it wouldn't be that simple.
    So I've added that code and I get no errors.  But it doesn't appear to be doing anything either.  I've added the code like this in the Custom calculation script of a separate field I've called FileName.  And on the Button i'm using I've added:  buttonClick()
    function buttonClick(){
    if(buttonClick==false)
              event.value=this.getField("SURNAME").valueAsString + "-" + this.getField("FIRSTNAME").valueAsString + "-" + this.getField("dob").valueAsString;
    So now I'm guessing that becasue i'm not getting an error or a result that I've screwed it up still.  Have I put the code in the correct area?  Have I assigned a the buttonClick() function correctly?

  • 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.

  • Copy/paste multiple fields is broken Acrobat Pro 9.2-9.4

    I've been updating contract pdf forms for over a year now using Acrobat Pro 9, lots of forms with many fields.  I copy the fields from the previous pdf contract, then paste them into the revised pdf contract, and then arrange the fields a little here and there as needed.  Up to 30 fields at once per form.
    Something has changed in the last week, on Acrobat Pro 9 for Windows and also Acrobat Pro 8 for Mac, both only allow me to copy and paste one field at a time now.
    Both Mac and PC versions worked a week or so ago.  Someone please tell me this is a known issue and in the queue to be fixed.
    Where can I submit this bug in addition to this forum?
    thx
    g

    Found it, it was a missing font!  All is good now.
    disregard message post ..... thx
    xxxxxxxxxxxxxxxxxxxxxxxxxxx
    This is still an issue, one thing I was just informed of by the graphics department are some initial installations for the new Adobe Livecycle system they are setting up.  These will be generating pdfs based on the department's InDesign forms.
    Every form they have created after 10-5-2010 has the issue where text fields can only be copied from one form to another one at a time, checkboxes however can all be selected at once, then pasted all at once into the new pdf document.  So text boxes no, and check boxes yes.
    This happens on my PC version of Acrobat Pro 9.4 and also the Mac version 8, that leads me to think the problem has been introduced at their end, and posibly since the Livecycle installs, something like a form/fragment management app I was told, still investigating.  We all use the current version Acrobat Pro 9.4.

  • Copying a Calculated Field Value to another Field in the same List

    Hello! I have a calculated field that uses an if statement to determine a score. IE A field called Downtime Score contains this calculate:  IF Downtime Minutes =10, 100.  (not correct formatting, just basic to get point across)
    I simply want to use a workflow to copy the calculated value in Downtime Score (100) to another field called Final Downtime Score.
    In the workflow, I current have the following:  Set FinalDowntimeScore to CurrentItem:Downtime Score
    When I log both to workflow history, they both show 0 in history.  Nothing is copying.
    The calculated field is a number and I tried both number and text fields for FinalDowntimeScore.
    This is within SharePoint 2013 and using SharePoint Designer 2013.
    Any help would be appreciated!

    Ok, I did the same test as you and it failed.  I still return a 0 when I should see a 100.
    Not sure if this helps but when even though we are using sharepoint designer 2013, we only have "SharePoint 2010 Workflow" available in Platform type when creating workflows.
    Could you test again using SharePoint 2010 workflow as your platform type and see if you return the same results?
    Thanks!

  • "order aknowledgement" field copied into "reference" field

    hi experts!
    i am trying to find a solution for automatical copy of the information from the "order acknowledge,emt" fiels from the tab confirmations from transaction ME22N into "reference" field in the same tab. does anybody have any idea how can I accomplish that???
    regards,
    ileana

    You will have to check the copy control settings:
    <b>Menupath</b>: SPRO --> Sales & Distribution --> Sales --> Maintain Copy Control for Sales Documents --> Copying Control: Billing Document to Sales Document
    <b>T.Code</b>: VTAF
    Ensure that settings are similar to settings for Billing Doc (F2) & sales Document (CR)
    Regards,
    Rajesh Banka
    reward points if helpful

  • Cheque no. to be copied to assignment field of payment doc.

    Hi All
    I need to copy the cheque no. issued for payment to the assignment field of payment doc. so that at the time of running BRS the field matches and also we do not have to enter the no. manually .
    I tried FCHU for this but on entering cocd , bank and selecting assignment check box the following error is coming : 
    No check which could be assigned to a document was found
    Message no. FS321
    Please advice what is missing

    Hi Sweta,
    That is practical problem u have faced, actually what I think yes u have created check but by mistake if that FCHU had been executed then wrongly  assignment field is filled with blank and then automatic linkup with chick no is not possible. In that case u have to do manually.
    Thanks n Regards
    Prakash
    SAP FI certified, ACWA

  • Dynamic ITAB copy problem with field type P

    Hello everyone
    I need to copy the structure of an internal table that is pass by reference into a method.
    Actually everything is fine else than the field type P with decimal is not created properly in the new itab.
    Scenario:
    An internal table is pass by reference to a method. We need to trait the data without modifying the original table. The Idea is to copy the structure and the data of the referenced internal table into an internal table created dymanically in the method.
    Here is what I did and working fine when there are no field of data type "CURR".
    Extract the structure of the reference data.
    Create a dynamic internal table.
    So far so good. Everything seams to work fine. BUT
    when I am trying to copy the data from the reference table to the just created internal table the field with data type "CURR" doesn't work.
    Here is my example:
    FIELD-SYMBOLS: <FS_TABLE> TYPE STANDARD TABLE,
                   <TMP_TABLE> TYPE STANDARD TABLE,
                   <LS_TMP_TABLE> TYPE ANY,
                   <LS_TABLE>     TYPE ANY,
                   <LS_VALUE>     TYPE ANY.
    DATA: lt_data      TYPE STANDARD TABLE OF vbak,
          ls_data      LIKE LINE OF lt_sortfield,
          ref_data     TYPE REF TO data,
          l_structure  TYPE REF TO DATA,
          lv_ltname    TYPE string.               
    select * from vbak UP TO 10 rows INTO CORRESPONDING FIELDS OF TABLE lt_data.
    * --- Assign the reference variable to the table
    * ---- Only use to simulate a parameter that is assign to a reference to a internal table
    unassign <FS_TABLE>.
    lv_ltname = 'lt_data[]'.
    ASSIGN (lv_ltname) to <FS_TABLE>.
    GET REFERENCE OF <FS_TABLE>[] INTO ref_data.
    * --- Assign the reference to the field-symbol
    UNASSIGN <FS_TABLE>.
    ASSIGN ref_data->* TO <FS_TABLE>.
    * --- Create a working area for the reference table to a field-table
    CREATE DATA l_structure LIKE LINE OF <FS_TABLE>.
    ASSIGN l_structure->* TO <LS_TABLE>.
    * --- Retrieve the structure of the field-symbol pointing to the internal table
    DATA: lr_tabledescr   TYPE REF TO cl_abap_tabledescr,   " Internal Table description
          _r_structdescr  TYPE REF TO cl_abap_structdescr.
    lr_tabledescr ?= cl_abap_tabledescr=>describe_by_data( <fs_table> ).
    _r_structdescr ?= lr_tabledescr->get_table_line_type( ).
    * --- Read internal table structure to create dynamic internal table
    data: ls_struc like LINE OF _r_structdescr->components,
          xfc           type lvc_s_fcat,
          ifc           type lvc_t_fcat.
    * --- Why the field (component) NETWR length is now 8 instead of 15?
    LOOP AT _r_structdescr->components into ls_struc.
      clear xfc.
      xfc-fieldname = ls_struc-name .
      xfc-datatype  = ls_struc-type_kind.
      xfc-inttype   = ls_struc-type_kind.
      xfc-intlen    = ls_struc-length.
      xfc-decimals  = ls_struc-decimals.
      append xfc to ifc.
    ENDLOOP.
    DATA:   dy_table      type ref to data,
    * --- Create dynamic internal table
    call method cl_alv_table_create=>create_dynamic_table
      EXPORTING
        it_fieldcatalog = ifc
      IMPORTING
        ep_table        = dy_table.
    * --- assign reference internal table to Field-symbol
    assign dy_table->* to <tmp_table>.
    unassign <ls_tmp_table>.
    DATA: ls_tmp_struc type REF TO DATA.
    CREATE DATA ls_tmp_struc like LINE OF <tmp_table>.
    ASSIGN ls_tmp_struc->* TO <ls_tmp_table>.
    Loop at <fs_table> INTO <LS_TABLE>.
    MOVE-CORRESPONDING <ls_table> TO <ls_tmp_table>.
    APPEND <ls_tmp_table> TO <tmp_table>.
    ENDLOOP.
    * <fs_table>-netwr length is 15
    * <ls_tmp_table>-netwr length is 8
    * ??????????? Why the length is different?
    * ??????????? It should a structure copy and have the
    * ??????????? same length
    I use VBAK as example, and the field NETWR is using data type "NETWR_AK" where it us a data type "CURR" with length 15 and decimal 2.
    When reading the structure, the method get_table_line_type of the class cl_abap_tabledescr return a length of 8 instead of 15.
    Any idea how to get the exact structure of a variable that is refering to a data type?
    Regards
    Daniel

    Hello Everyone
    Thank you for your replies.
    I think I didn't explain myself clearly.
    My goal is to be able to create an exact  structure copy of a "Type ref to data" into a new internal table that is not defined yet.
    Example:
      A method contain a parameter that is a ref to DATA type.
      That parameter is refering to an internal table from the calling program.
      Now I want to create an internal table into the method where this one will be an exact structure copy of the parameter.
      So, lets put some name here.
      parameter: ip_data type ref to data.
      FIELD-SYMBOLS: <FS_REF_DATA> TYPE STANDARD TABLE,
                                    <FS_CP_DATA>  TYPE STANDARD TABLE.
    ASSIGN ip_data->* TO <FS_REF_DATA>.
    " some code to assign the same structure to <FS_CP_DATA> from <FS_REF_DATA>
    " than copy the data from <FS_REF_DATA> to <FS_CP_DATA>.
    <FS_CP_DATA> [ ] = <FS_REF_DATA> [ ].  " This is working if no type P with decimal exist into the structure
    " Than I can play with the data of <FS_CP_DATA> without modifying the data of <FS_REF_DATA>.
    My problem would be solved if I can create dynamically an internal table that has an exact structure copy of the passed parameter.
    Regards
    Daniel

  • Block fields / Copy reply of fields in other pages

    Hello,
    I am using Adobe Acrobat Pro version 11 and I prepared a PDF Form using FormsCentral. I have got two queries please.
    1) in my PDF form, there are one block of fields that is repeated 5 times. Is there a way to hide the blocks of fields that are not necessary; i.e. if the applicant does not need more than one block, the four other blocks do not appear on the pdf form ?
    2) can datas entered in various fields on page 1 of the PDF form be used on other pages; i.e. can the info introduced by the applicant in various fields be copied in other pages automatically because reply(ies) is(are) the same on page 5 for instance?
    If the Adobe "standard" does not allow the above actions, which product should I use ?
    Many thanks in advance for your help.
    Kind regards

    Hi;
    For #1 - No, there is no "Show/Hide" available for the PDF from FormsCentral, it is supported in the web/HTML form, but not for PDF.  The only tool that does accomplish this in PDF is "LiveCycle Designer".   LiveCycle creates a different type of form than FormsCentral and if you created a form there with this type of "Show/Hide" functionality it would not be compatible with FormsCentral. 
    LiveCycle Designer was available with Acroat X but not Acrobat XI - however it is still available to users who have purchased Acrobat Professional XI:
    http://helpx.adobe.com/x-productkb/policy-pricing/upgrade-livecycle-de signer-acrobat-xi.html
    For #2 - Also a "no", not through FormsCentral.  However, this is something you should be able to do in Acrobat Pro by opening the PDF in Acrobat and further editing the form there.  You would want to get additional help for how to make the changes from the "Acrobat Forms Forum" here: http://forums.adobe.com/community/acrobat/forms
    You would also want to review this FAQ about editing a FormsCentral form in Acrobat: http://forums.adobe.com/docs/DOC-3661
    Thanks,
    Josh

  • Copy person & group field value to another person or group field programmatically

    Hi 
    I have one user list in SharePoint sitecollection1 having User in Title(having simple user name) and UserName in Person or Group type field.
    I want to copy this list into my site list with same column names programatically using timer job.
    How I can copy the person or Group field from siteColletion1 to person or group field of sitecollection2(my site),
    as both column types are same.
    Pleas suggest any solution.

    I am getting user name and user id using following code,
    foreach (Microsoft.SharePoint.Client.FieldUserValue userValue in oclistItem["UserName"] as Microsoft.SharePoint.Client.FieldUserValue[])
    string username =    userValue.lookupValue.tostring();                               
    But how to get the login name ? or how can I get the User Object from this field?
    Anybody got this type of issue before.
    Please suggest any solution

  • Livecycle: Can you click a check box and have it copy the entire field to a new location?

    I have a check box and I want to check the box and have field 1a, field 1b, field 1c be copied to location on a third page.
    These are patient goals: and those goals need to be recognized later on while trying to fill out paperwork, but I don't want to have to look back at the front page. so I want to pick which goals I want to see at a later page and have the goal  (field) and the field content that was chosen on the first page show up.
    I will choose three to five goals and I want them lined up
    field 1a, field 1b, field 1c then underneath
    field 2a, field 2b, field 2 c etc.
    THanks for the help
    CHeers

    The attachment functionality in this forum keeps fluctuating ....if you do not see an add attachmnet button on your post then email it me instead at [email protected]
    Paul

  • How to Copy data from field symbol to Dynamic Internal Table

    Hi,
    I want to copy the data between two dynamic Internal tables . Following is the code were I have data in the field symbol wanted to transfer it to the other Internal table :
    REPORT  ztest.
    DATA:
           gd_dref          TYPE REF TO data,
           gd_dref1          TYPE REF TO data.
    FIELD-SYMBOLS:  <fs1>   TYPE any,
                               <fs_wa> TYPE any,
                                <field>    TYPE any,                  
                                <fs_wa1> TYPE ANY TABLE.  * Contains data from p_src
    *Copy data from p_src to p_dest*
    PARAMETERS: p_src LIKE dd02l-tabname .    * Name of Dynamic Internal table *
                             p_dest LIKE dd02l-tabname .  * Name of Dynamic Internal table*
    *DATA : lt_csks LIKE p_dest WITH HEADER LINE.
    START-OF-SELECTION.
      CREATE DATA gd_dref TYPE (p_src).
      CREATE DATA gd_dref1 TYPE TABLE OF (p_src).
       ASSIGN gd_dref->* TO <fs_wa>.
       ASSIGN gd_dref1->* TO <fs_wa1>.
       SELECT * FROM (p_src) INTO TABLE <fs_wa1>.
    *Write out data from FIELD SYMBOLS TO Table.
       loop at <fs_wa1> into <fs_wa>.
         do.
           assign component  sy-index
              of structure <fs_wa> to <field>.
           if sy-subrc <> 0.
           exit.
           endif.
           if sy-index = 1.
             write:/ <field>.
           else.
           write: / <field>.
           endif.
         enddo.
       endloop.
    *Need Logic To Copy the Data to p_dest table from <fs_wa1>.
    *p_dest is a table having a similar structure to table p_src .
    *Need Logic To Copy the Data to p_dest table from <fs_wa1>.
    EXIT.
    Thanks in Advance.

    try this...
    I have extended your source code and just used vbak/vbap as an example as they have some common fields like vbeln/erdat etc which corresponds with your requirement of 'similar structure' i.e. shared/common fields in both.
    Cheers...
    report  ztest.
    data:
      gd_dref type ref to data,
      gd_dref1 type ref to data,
      gd_dref_str type ref to data,
      gd_dref_tab type ref to data.
    field-symbols:
      <fs1> type any,
      <fs_wa> type any,
      <fs1_dest_str> type any,
      <fs_dest_tab> type any table,
      <field> type any,
      <fs_wa1> type any table.
    * contains data from p_src
    *Copy data from p_src to p_dest*
    parameters: p_src like dd02l-tabname default 'vbak',
    * name of dynamic internal table *
                p_dest like dd02l-tabname default 'vbap'.
    * name of dynamic internal table*
    *data : lt_csks like p_dest with header line.
    start-of-selection.
      create data gd_dref type (p_src).
      create data gd_dref1 type table of (p_src).
      assign gd_dref->* to <fs_wa>.
      assign gd_dref1->* to <fs_wa1>.
      select * from (p_src) into corresponding fields of table <fs_wa1>
      up to 3 rows
      where vbeln ne space.
      create data gd_dref_str type (p_dest).
      create data gd_dref_tab type standard table of (p_dest).
      assign gd_dref_str->* to <fs1_dest_str>.
      assign gd_dref_tab->* to <fs_dest_tab>.
    *write out data from field symbols to table.
      loop at <fs_wa1> into <fs_wa>.
        " break-point here - can see vbeln/waers/create date/ etc move over to new structure
        " the 'common' fields of your structures - the same will happen. if they not the same name you will have to do an
        " explicit move i.e. if fieldname = xyz ....move fieldxyz to new field123....after the move-corre
        break-point.
        move-corresponding <fs_wa> to <fs1_dest_str>.
        insert <fs1_dest_str> into table <fs_dest_tab>.
    **    do.
    **      assign component  sy-index
    **         of structure <fs_wa> to <field>.
    **      if sy-subrc <> 0.
    **        exit.
    **      endif.
    **      if sy-index = 1.
    **        write:/ <field>.
    **      else.
    **        write: / <field>.
    **      endif.
    **    enddo.
      endloop.
      " write out some dest data from the dest table build from previous loop
      loop at <fs_dest_tab> assigning <fs1_dest_str>.
        do.
          assign component sy-index of structure <fs_wa> to <field>.
          if sy-subrc <> 0.
            exit.
          endif.
          if sy-index = 1.
            write:/ <field>.
          else.
            write: / <field>.
          endif.
        enddo.
      endloop.

  • How can we make one view field value to be copied to other field of the the

    Hi   
       I am new  in CRM2007 I have enhanced sap component & enhanced SAP View but I wanted the field value of the enhanced view to be mapped to the field value of the same view which is added from EEWB
    Pls tell me if the added new field can be made as Dropdown list box without fixed values & Design Layer customizing I mean to say through coding can we made the input field as Dropdown
    Appreciate any help in advance
    Thanks
    Neel

    Hi,
    You can write your own ligic in GET_V_<FIELD> method. Select the values which needs to be displayed in the drop down list based on your own condition. Some sample code is given below:
    METHOD get_v_zzverksomr.
      DATA: lt_ddlb           TYPE bsp_wd_dropdown_table,
              ls_ddlb           TYPE bsp_wd_dropdown_line,
              lv_display_only   TYPE string,
              gr_ddlb_verksomr  type ref to CL_CRM_UIU_DDLB,
              ls_verksomr_values  TYPE LINE OF vrm_values.
        SELECT verksomr verksomrtxt FROM zkb_verks
           INTO TABLE lt_ddlb.
        IF sy-subrc EQ 0.
          INSERT INITIAL LINE INTO lt_ddlb INDEX 1.
        ENDIF.
      IF gr_ddlb_verksomr IS NOT BOUND.
        FREE gr_ddlb_verksomr.
        CREATE OBJECT gr_ddlb_verksomr
          EXPORTING
            iv_source_type = 'T'.
        LOOP AT gt_verksomr_values INTO ls_verksomr_values.
          ls_ddlb-key   = ls_verksomr_values-key.
          ls_ddlb-value = ls_verksomr_values-text.
          APPEND ls_ddlb TO lt_ddlb.
        ENDLOOP.
        gr_ddlb_verksomr->set_selection_table( it_selection_table = lt_ddlb ).
      ENDIF.
      rv_valuehelp_descriptor = gr_ddlb_verksomr.
    ENDMETHOD.
    Thanks
    Swagatika

Maybe you are looking for

  • BT Netprotect PLus - Renew Licence Issue

    Quod Core PC with Vista s/p2 64bit BT BB with option 3 I have enjoyed BT Netprotect Plus for sometime and every now and again I get a stupid licence renew issue occur as do others. Well it has happened again but this time I have been unable to fix it

  • N73/Pc Suite issues

    Hello to all, just wondering if some1 could help us. Pc Suite connects to our phone and we can move music etc to and from phone and pc, but when we go on to nokia software updater it only gets to step 2(preparing udate- searching for connected phone)

  • JQuery and the row selector column.

    I have a tabular form which i'm running some validation against. I'm using the row selector to indicate rows which are to be deleted. Now i've deleted rows using the method below, that's fine. DECLARE rows_int integer; Err_message varchar2(50); BEGIN

  • Access XML array inside MovieClip. How ?!

    Hello, Ok, I have a code to load Multiple XML files at once and save it to an array named xmlDocs like this: //each xml file to load var xmlManifest:Array = new Array(); //the xml for each file var xmlDocs:Array = new Array(); //the xml file with all

  • How to identifiy Faulty Driver in Boot Image (Reverse Engineering of Adding a Driver to Boot Image)

    Hello SCCM'lovers I'm having a new EliteBook 820 G2 here which Fails PXE boot due to a false corrupted Intel Advanced Network Service Virtual Adapter-Driver. The PROBLEM now is how to determine under Boot Images - Properties - Drivers ... the correct