2007 Jul 25 7:03 AM
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
2007 Jul 25 7:08 AM
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
2007 Jul 25 7:08 AM
2007 Jul 25 8:11 AM
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
2007 Jul 25 7:09 AM
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
2007 Jul 25 8:13 AM
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
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |