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

Infotype with table control

Former Member
0 Likes
647

Hi all .

I am supposed to make an infotype like infotype 0008 - an infotype with table control. I know how to create a simple infotype. Can anyone guide me how to incorporate a tabl;e control in an infotype?

Thanks

Ribhu

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
614

Look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP_PD.pdf">Developing an Infotype (Planning)</a>, you will find the information you find in this document.

Regards

Look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP_PD.pdf">Developing an Infotype (Planning)</a>, you will find the information you find in this document.

Regards

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
615

Look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP_PD.pdf">Developing an Infotype (Planning)</a>, you will find the information you find in this document.

Regards

Read only

0 Likes
614

Thanks for your reply but I am nor making a planning infotype. I am making a PA infotype. Please see if you could help me in that.

Thanks

Ribhu

Read only

Former Member
0 Likes
614

Hi

Hi,

update in the PAI module of the Table control.

try using the below code.

MODULE USER_COMMAND_0100 INPUT.

CASE SY-UCOMM.

WHEN 'CANCEL'.

LEAVE PROGRAM.

WHEN 'UPDATE'.

PERFORM UPDATE.

ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INPUT

&----


*& Form UPDATE

&----


FORM UPDATE .

MODIFY ZTABLE FROM ITAB.

ENDFORM. " UPDATE

&----


*& Module DATA_FROM_CTRL INPUT

&----


  • MODULE DATA_FROM_CTRL INPUT.

ITAB-BUKRS = ZTABLE-BUKRS.

ITAB-KUNNR = ZTABLE-KUNNR.

ITAB-NAME = ZTABLE-NAME.

MODIFY ITAB INDEX TAB_CTRL-CURRENT_LINE.

IF SY-SUBRC <> 0.

APPEND ITAB.

ENDIF.

ENDMODULE. " DATA_FROM_CTRL INPUT

cheeck this link.

http://www.sapdevelopment.co.uk/hr/hr_infotypes2.htm

<b>Reward points</b>

Regards

Read only

0 Likes
614

Hi Kiran,

It seems you are using a Ztable to store the data of the table control. I want my infotype to work like infotype 0008. Please see if you can help me in that.

Regards,

Ribhu