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

using table control wizard in Dialog programming

Former Member
0 Likes
1,039

Dear experts,

my requirement is i have to design a screen . it for PO creation ,update.

my inputs for this screen is vendor no and change/create date .when iam going to input these two and press enter i should displayall the materials related to dt perticular vendor(line items) and also i should get the data of 5 fields for that perticular vendor and all the materials.

now iam able to design screen using table control wizard but how to get all the materials for that perticular vendor and also these materials i have to take in horizantal (column ) of the table .

please helpme out.iam new to this

Thanks in advance.

regards

shiv

Edited by: raj shiv on Jan 4, 2012 11:46 AM

5 REPLIES 5
Read only

Former Member
0 Likes
817

HI friend,

See the link below you will find the steps of creating a table control,

Link: <link to blocked site removed by moderator>

In the second page there is a module called MODULE SELECT_RECORDS. Just use that module to in the PAI and in the where condition specify the name of the input fields in which you are getting the values for selection.

If you still face queries please revert back to me i will help you.

Thanks,

Sri Hari

Edited by: Thomas Zloch on Jan 5, 2012 11:18 PM

Read only

0 Likes
817

Thanks for your inputs.

but i have gone to this link.i have idea how to usew table conttrol wizard.but i require two more coloums in the same internal table in which one is for no of materials to provide and one is for check boxs.how to get these extra colums in IT and how to edit these fields iam unable to do.

regards

b.shiv

Read only

Former Member
0 Likes
817

Hi,

For your requirement you need to create a table control to display data. So select all data in internal table and display it in table control .

<link to blocked site removed by moderator>

This link will give u a detail explanation ,related to how to display data in table control, along with the screen shots. Please go through this link.

Hope this will be useful.

Regards

Sumit

Edited by: Thomas Zloch on Jan 5, 2012 11:18 PM

Read only

Former Member
0 Likes
817

Hi,

Create a table control in layout and place your fields in table control.

Press F6 and give the table name and click on get from dictionary and select the 5 fields which you required and palce those fields in table control.

Double click on table control and give table control name .

In Top include create a stmt as

CONTROLS : TABlecontrolname TYPE TABLEVIEW USING SCREEN '1000'.

In PBO under a module write your logic that means select query and place it in an internal table. Place that select query under IF condition.

Module Read.

If SY-UCOMM = 'ENTER'.

Process query.

endif.

endmodule.

LOOP AT ITAB INTO WA WITH CONTROL TAB.

MODULE DISP.

ENDLOOP.

In PAI.

LOOP AT ITAB.

ENDLOOP.

Here ITAB is internal table name.TAB is table control name.In display module write the code

MODULE DISP OUTPUT.

MOVE-CORRESPONDING WA TO database tablename.

ENDMODULE.

And in 1000 screen create SET PF status in the function keys assign a keyword to Enter Icon as 'ENTER'.

Hope this is helpful.

Regards,

G.Aditya

Read only

Former Member
0 Likes
817

create these fields as part of your original table control. hide them before initial diaplay it in PAI (sy-ucomm = 'ENTER').