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

Append structure

Former Member
0 Likes
591

Hi all

I need to add an append structure to a sap defined table.But in this table i have a field which should always be a last field.If i add an append structure to this table then it is displaying at last.Please expalin to me is there any way to add this append structure to this table else where instead of atlast.

Thanks in advance.

Regards

Giri.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
553

Append always appends anything you enter at the last instead if it's a requirement then what you can do is that you can access all the information in the table and then append you record in the table (you have to access each and every field of the table) .... after appending the records that you want to enter in the SAP Table ... you can sort your internal table according the necessary criteria and then what you can do is actually you can use .... MODIFY DTAB USING INTERNAL TABLE statement........ but be causious .. that if you donot access any field from the database table then it can create inconsistency,,,,,,, also in my solution there is also a big problem of performance tuning and the time constraint.... bz it will take a long time for the complete operation ... and if the database table contains much data it will be really foolish thing to do with it..........

But it was my way of thinking and a middle solution if you want to do so.....

Please rewards points if you liked the idea

4 REPLIES 4
Read only

Former Member
0 Likes
553

Hi Giri ,

I dont think we can append a structure in between .

Could you please explain why do you need a perticular field as the last record , how does the postion of a field in table matter.

Regadrs

Arun

Read only

0 Likes
553

Hi Arun

I am trying to create an append structure for sap defined view.this view (VBUT000_TD) has the last field KZ.This field contains change document types.If it is include then I,if it is update then U etc.I added a new z field in BDT.in order to get the change document history i have to add this field to the above view VBUT000_TD.so i am trying to add it in the append structure.Please helpme.

Thank you.

Regards.

Giri.

Read only

0 Likes
553

HI,

You cannot append structure in between two fields.

Always it is appended at the last only.

Regards

Subramanian

Read only

Former Member
0 Likes
554

Append always appends anything you enter at the last instead if it's a requirement then what you can do is that you can access all the information in the table and then append you record in the table (you have to access each and every field of the table) .... after appending the records that you want to enter in the SAP Table ... you can sort your internal table according the necessary criteria and then what you can do is actually you can use .... MODIFY DTAB USING INTERNAL TABLE statement........ but be causious .. that if you donot access any field from the database table then it can create inconsistency,,,,,,, also in my solution there is also a big problem of performance tuning and the time constraint.... bz it will take a long time for the complete operation ... and if the database table contains much data it will be really foolish thing to do with it..........

But it was my way of thinking and a middle solution if you want to do so.....

Please rewards points if you liked the idea