‎2008 May 02 7:13 PM
I want to create a funcion module which inserts data in a table i created sooner.
This is how my table looks in se11:
[pic01|http://kepfeltolto.hu/i/?90028&t=img]
This is how my import tab looks within the function module:[pic02|http://kepfeltolto.hu/i/?90031&t=img]
This is my source code in the modul:
FUNCTION ZPB01FM.
IMPORTING
REFERENCE(OUAID) TYPE INT1
REFERENCE(COMP) TYPE SSTRING
REFERENCE(BUSINESS) TYPE SSTRING
REFERENCE(GROUP) TYPE SSTRING
REFERENCE(NAMEOF) TYPE SSTRING
REFERENCE(MANNAME) TYPE SSTRING
*"----
DATA: itab TYPE TABLE OF ZPB_FORM_ORG
wa LIKE LINE OF itab.
wa-ORG_UAID = OUAID.
wa-company = comp.
wa-business_area = business.
wa-group_zpb = group.
wa-name_of_nou = nameof.
wa-manager_name = manname.
INSERT wa INTO TABLE ZPB_FORM_ORG.
ENDFUNCTION.
I did not change anything else in function modul. Will this work? If not how should i do it?
If it works is it not a problem, that i don't insert all fields in table, only 5 of them?
I really need the answer, thanks, Peter
‎2008 May 02 7:17 PM
‎2008 May 02 7:17 PM