cancel
Showing results for 
Search instead for 
Did you mean: 

A new append-structure or fill the fields in availabe append-structure

Former Member
0 Kudos

Hi guys,

I have several fields which need to be inserted to a structure. This structure contains already one append-structure. Now I am not sure if I should create a new append-structure for my fields or insert these fields to curret availabe append-strucutre.

How can I decide it? Is there any hint?

Thanks in advance!

Regards,

Edited by: Liying Wang on Jan 10, 2008 4:45 PM

Edited by: Liying Wang on Jan 10, 2008 5:00 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member699913
Contributor
0 Kudos

Hi Liying,

I suggest you add the fields in your already existing append structure....This would also help in the coding to populate the values in the new fields as u can utiliose the already existing code.

You can change the current append structure through transaction SE84...

Hope it helps,

Ajay

Former Member
0 Kudos

Thanks Ajay,

but what do u mean "utilise the already existing code"?

If a new append-strucutre is created, can't i use the exising code?

Regards

former_member699913
Contributor
0 Kudos

Hi Liying,

but what do u mean "utilise the already existing code"?

After creating the append structure , we have to populate values in those fields through coding.And this is done in CMOD with the append structurte name.

Now suppose the you have a new field which comes from a table that is already being used in your coding...Than there is no need for you to do another read from database....

Hope it helps,

Ajay

Former Member
0 Kudos

Hi Ajay,

sorry, but i haven't yet get ur point.

sure, I have to edit code via cmod. But the new fields come from totally different database, the exsiting code is not enough, in another word, if I use the existing append-structure, I still have to add code at the end of current code to populate value for new fields...

Edited by: Liying Wang on Jan 10, 2008 6:02 PM

Former Member
0 Kudos

Hi Ajay.

moment...

what do u mean"

this is done in CMOD with the append structurte name."

U mean every append structure has its own code/program?

former_member699913
Contributor
0 Kudos

Hi Liying,

I mean the same....thats why I asked you to have include in one structure....had it been of same database it would have been an advantage...but still even if that doesnt hold I would used one structure because of the reason which you have also mentioned in your last post...

Ajay

Former Member
0 Kudos

Sorry Ajay,

I still have to aske once again: Do you mean that every append-structure has its own code/program, if a new append-structure is created, a totally new program has to be edited?

What I know is: it is independ on how many or which append-structure there is, the same program can be used. The only thing I have to do is fill the value for new fields based on existing cod, but all of code in one program

Former Member
0 Kudos

I got the answer after test, it doesn't matter how the structure is inserted with new field, the code is the same

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think it is better to have a new append structure. This would only help you in keeping track of changes you did. and in future if a situation arises, which is not likely, where you want to revert back the changes, you can do that easily.

Regards,

Kalyan

Former Member
0 Kudos

Thanks Kalyan,

so u mean principally there is no additional code effort (except the code for obtaining corresponding fields i want to insert)? Both of dicisions needed to be expand code, more important, the same effort ?