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 Control

raj2
Explorer
0 Likes
590

Hi Experts,

This is table control PAI code I need help  for FIELD after using  structure fields given DUMP. Please send this solution.If you know the correct code send and explain the wrong and give complete solution. 

PAI:

Loop at lt_kna1,

field:lw_kna1-kunnr,

       lw_kna1-land1,

       lw_kna1-name1,

       lw_kna1-ort01.

Modeule Modify.   

endloop.


1 ACCEPTED SOLUTION
Read only

raj2
Explorer
0 Likes
480

Thanks for replay but here using multiple times for coding part that is write in PERFORM

FORM MOVE_DATA_IT_TO_WA.

WA_ST-MATNR = MARA-MATNR.
WA_ST-ERSDA = MARA-ERSDA.
WA_ST-ERNAM = MARA-ERNAM.
WA_ST-LAEDA = MARA-LAEDA.


MOVE-CORRESPONDING WA_ST TO WA_MARA.

ENDFORM.


I did not want write above type  code that have more lines because using below type code this is working ,i know but in my program not working.

I want use FIELD: key word


FIELD: wa_st-matnr,

             wa_st-ersda,

            wa_st-ernam

            wa_st_lead. 

2 REPLIES 2
Read only

Former Member
0 Likes
480

Hi Sekhar,

Can you share the Dump you are receiving?

Please go through few Tutorials on Table control and then try with your requirement.

I am sure it will help, kindly find samples on Table control :

Learn Making First Table Control - ABAP Development - SCN Wiki

http://www.saptechnical.com/Tutorials/ABAP/TableControl/Demo.htm

Best Regards,

KC

Read only

raj2
Explorer
0 Likes
481

Thanks for replay but here using multiple times for coding part that is write in PERFORM

FORM MOVE_DATA_IT_TO_WA.

WA_ST-MATNR = MARA-MATNR.
WA_ST-ERSDA = MARA-ERSDA.
WA_ST-ERNAM = MARA-ERNAM.
WA_ST-LAEDA = MARA-LAEDA.


MOVE-CORRESPONDING WA_ST TO WA_MARA.

ENDFORM.


I did not want write above type  code that have more lines because using below type code this is working ,i know but in my program not working.

I want use FIELD: key word


FIELD: wa_st-matnr,

             wa_st-ersda,

            wa_st-ernam

            wa_st_lead.