Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Table maintenance problem regarding maintenance events

Former Member
0 Likes
1,224

Hi, I have a table and maintenance screen in sm30.

I have written a form in table a maintenance event 01 which is "before saving data".

In this form I have two tables those are total and extract both of these two tables has the same structure and containing the field "LINE".

My problem is; in the LINE field, the data which i entered in table maintenance is kept comes as string.

I want to get the value as my database structure.

is there any function module to get the value in desired structure?

For example I will send the line and my table structure, it will give me the value in the format that I want.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,191

Hi,

Use this FM HR_99S_COPY_STRUC1_STRUC2

Hi,

Use this FM HR_99S_COPY_STRUC1_STRUC2

7 REPLIES 7
Read only

Former Member
0 Likes
1,192

Hi,

Use this FM HR_99S_COPY_STRUC1_STRUC2

Read only

0 Likes
1,191

Thanks but that doesn't work

Any other suggestions??

Read only

0 Likes
1,191

Hi,

let me know how did you use this FM.Paste the code that helps

Read only

0 Likes
1,191

Actually I wasn't able to use it because I dont know which parameters it takes, besides it is not written in the function module's import and export field.

If you have structure that you use maybe you can write here.

Thanks for your interest.

Read only

0 Likes
1,191

Hi,

use this way...

Data : l_mara type mara

CALL FUNCTION 'HR_99S_COPY_STRUC1_STRUC2'
    EXPORTING
      p_struct1 = LINE             ---->  Flat string with data 
    IMPORTING
      p_struct2 = l_mara.

Read only

0 Likes
1,191

Thanks, it really worked.

I'm now changing the values.

Edited by: Taner Güngör on Mar 20, 2009 10:41 AM

Read only

Former Member
0 Likes
1,191

Use the move statement from the string field (line) to the structure. The structure will be filled with the proper data.