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

Internal table and Custom table

Former Member
0 Likes
551

hi Guys,

I am pretty new to ABAP and I have a very small doubts.

1.Can we update any field of the Z or custome table directly or do we first need to create an internal table of that Z table and update the field of that internal table and then update the Z or custom table.

2. I have an internal table it_temp and its z table is z_temp. I made what ever changes I want to make in the internal table and now I want to update that Z or custom table with the values of that updated internal table.

Can you please tell me how to do that.

3. I have written a perfrom that will through the error message when we don't find the specific cstomer that " customer Id CUSTID is not available" along with the customer ID ... can you tell me how can we do that .

Thanks

Rajeev gupta

hi Guys,

I am pretty new to ABAP and I have a very small doubts.

1.Can we update any field of the Z or custome table directly or do we first need to create an internal table of that Z table and update the field of that internal table and then update the Z or custom table.

2. I have an internal table it_temp and its z table is z_temp. I made what ever changes I want to make in the internal table and now I want to update that Z or custom table with the values of that updated internal table.

Can you please tell me how to do that.

3. I have written a perfrom that will through the error message when we don't find the specific cstomer that " customer Id CUSTID is not available" along with the customer ID ... can you tell me how can we do that .

Thanks

Rajeev gupta

3 REPLIES 3
Read only

Former Member
0 Likes
530

Hi Rajeev,

1. You can do using the internal table as well you can update only one particular field without internal table. Internal table is suggested.

2. You need to use UPDATE z_emp FROM TABLE it_emp.

3.This is the same way you have written, a slight modification is

MESSAGE e000 WITH 'Customer ID' l_customer_id 'is not available.'.

Regards,

Atish

Read only

0 Likes
530

Hi atish,

thanks for the reply .

well for the messgae thing I am using the following syntax:

FORM put_error_msg2 .

move:'Customer ID' it_temp_-custid 'is not available.' to z_emp-descp.

ENDFORM. " put_error_msg2

and its giving me following mesage " it_temp-custid " is not expected.

Read only

0 Likes
530

hi Rajeev,

Use like below

CONCATENATE 'Customer ID' it_temp_-custid 'is not available.' INTO z_emp-descp SEPARATED BY space.

Regards,

Atish