Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7414767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:09:59+00:00 2026-05-29T07:09:59+00:00

I am looking for a language construct or a function module which would be

  • 0

I am looking for a language construct or a function module which would be MOVE-CORRESPONDING IGNORING INITIALS like. Simply put I want something that works exactly like MOVE-CORRESPONDING source TO dest but ignoring all the fields which are initial in the source.

Is there someting like that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:10:03+00:00Added an answer on May 29, 2026 at 7:10 am

    I have prepared my own piece of code that I want to share. It is not perfect, it will not work with complex structures. However I do not need anything more right now than to work on flat structures.

    CLASS lcl_utilities DEFINITION FINAL CREATE PRIVATE.
      PUBLIC SECTION.
        CLASS-METHODS:
          move_corresponding_ignore_init
            IMPORTING
              i_str_source TYPE any
            CHANGING
              c_str_dest   TYPE any.
    ENDCLASS.
    
    CLASS lcl_utilities IMPLEMENTATION.
      METHOD move_corresponding_ignore_init.
        DATA:
          l_rcl_abap_structdescr TYPE REF TO cl_abap_structdescr.
    
        l_rcl_abap_structdescr ?= cl_abap_typedescr=>describe_by_data( i_str_source ).
        LOOP AT l_rcl_abap_structdescr->components ASSIGNING FIELD-SYMBOL(<fs_str_component>).
          ASSIGN COMPONENT <fs_str_component>-name OF STRUCTURE c_str_dest TO FIELD-SYMBOL(<fs_dest_field>).
          IF sy-subrc = 0.
            ASSIGN COMPONENT <fs_str_component>-name OF STRUCTURE i_str_source TO FIELD-SYMBOL(<fs_source_field>).
            ASSERT sy-subrc = 0.
            IF <fs_source_field> IS NOT INITIAL.
              <fs_dest_field> = <fs_source_field>.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDMETHOD.                    "move_corresponding_ignore_init
    ENDCLASS.
    

    …and a small macro in order to use it more less like a language construct.

    DEFINE move_corresponding_ignore_init.
      lcl_utilities=>move_corresponding_ignore_init(
        exporting
          i_str_source = &1
        changing
          c_str_dest   = &2
      ).
    END-OF-DEFINITION.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for an efficient eigensolver ( language not important, although I would
I'm looking at the liquid templating language for Rails apps: http://wiki.github.com/tobi/liquid/ I'd like my
I'm looking for a piece of code which behaves a bit like a singleton
I'm looking for a language sort of like PHP, but more brief -- I'm
I'm writing a construct in PHP where a parser determins which function to call
Is there any Scala like alternative to JavaScript? I'm looking for language with: Embeded
I'm looking for a semantic or language construct that will simplify some of my
Looking at the C# and VB.NET language specs I think it says that the
I'm looking to create an Intellij IDEA language support plugin for Erlang. The first
If I were looking to create my own language are there any tools that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.