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

urgent coding

Former Member
0 Likes
573

hi friends

i need code for userexit which triggers my extended idoc

segment is -E1WPA01

Zsegment -- Zseg1

this is my first coding for idoc so don't know how to link the fields.plz help me out

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(PI_E1WPA03_CNT) LIKE WPSTRUC-CNT

*" VALUE(PI_E1WPA04_CNT) LIKE WPSTRUC-CNT

*" VALUE(PI_E1WPA05_CNT) LIKE WPSTRUC-CNT

*" VALUE(PI_E1WPA07_CNT) LIKE WPSTRUC-CNT

*" VALUE(PI_E1WPA09_CNT) LIKE WPSTRUC-CNT

*" VALUE(PI_E1WPA10_CNT) LIKE WPSTRUC-CNT

*" VALUE(PI_E1WPA11_CNT) LIKE WPSTRUC-CNT

*" VALUE(PX_SEGMENT_COUNTER) LIKE WDLSP-ANSEG

*" VALUE(PI_SEG_LOCAL_CNT) LIKE WPSTRUC-CNT

*" VALUE(PI_DLDNR) LIKE WDLSP-DLDNR

*" VALUE(PI_DLDLFDNR) LIKE WDLSP-LFDNR

*" VALUE(PI_ERMOD) LIKE TWPFI-ERMOD

*" VALUE(PI_FIRSTKEY) LIKE WDLSP-STKEY

*" VALUE(PX_INIT_LOG) LIKE WPSTRUC-MODUS

*" VALUE(PX_STATUS) LIKE WPSTRUC-CNT

*" VALUE(PX_ERR_COUNTER) LIKE WPSTRUC-CNT

*" VALUE(PI_COPY_MODE) LIKE WPSTRUC-MODUS DEFAULT ' '

*" VALUE(PX_STATUS_POS) LIKE WPSTRUC-CNT

*" VALUE(PI_MARA) LIKE WPMARA STRUCTURE WPMARA OPTIONAL

*" VALUE(PI_MARM) LIKE WPMARM STRUCTURE WPMARM OPTIONAL

*" VALUE(PI_FILIA_CONST) LIKE WPFILCONST STRUCTURE WPFILCONST

*" OPTIONAL

*" VALUE(PI_WLK2) LIKE WPWLK2 STRUCTURE WPWLK2 OPTIONAL

*" EXPORTING

*" VALUE(PE_FEHLERCODE) LIKE WPSTRUC-CNT

*" VALUE(PX_ERR_COUNTER) LIKE WPSTRUC-CNT

*" VALUE(PX_INIT_LOG) LIKE WPSTRUC-MODUS

*" VALUE(PX_STATUS) LIKE WPSTRUC-CNT

*" VALUE(PX_STATUS_POS) LIKE WPSTRUC-CNT

*" VALUE(PI_SEG_LOCAL_CNT) LIKE WPSTRUC-CNT

*" TABLES

*" PXT_IDOC_DATA_TEMP STRUCTURE EDIDD

*" PIT_IDOC_DATA STRUCTURE EDIDD OPTIONAL

*" CHANGING

*" REFERENCE(PIT_IDOC_DATA_NEW) TYPE SHORT_EDIDD OPTIONAL

*"----


points will be rewarded

thanks in advance

raj

4 REPLIES 4
Read only

Former Member
0 Likes
529

Hi Raj,

I am not aware of the area of implementation, but can tell you the way of writing the program.

First we have to find a customer-function in this mosule. (I think EXIT_SAPLWPDA_001 will help you - I assume you know enhancements)

Here you have to write select query to fill your Z-segments ZSEG1. All std. fields will be filled automatically, we have to fill Enhanced one....

Pl confirm whether any more info. is required...

Regards,

Audy.

Read only

Former Member
0 Likes
529

Hi,

Dont worry , take it easy !!

What is the function module name or include name ?? U forgot to mention !!

In the function module there will be include prog . Double click on that it will take u in the source code ....In that code at right place u hv to write little bit of code which will select all necessary data as per u r requirement then move those data into the segment , and try to check in the idoc if the value populated currectly.

Cheers.

Read only

0 Likes
529

hi

my FM is-- EXIT_SAPLWPDA_002 [my exit]

include is -- ZXWPDU02

thanks waiting for reply

raj

Read only

0 Likes
529

Hi ,

I spent some time on it but i dont hv any good news !!

include ZXWPDU02 does not exist in my system. I believe it used to create by default like a template which u may not find using se38. Pl ck in u r sys trhough se38 or double click on the include it will take u in the code if it available in the sys then u can write u r code there. And if the include does not exist and

If U think the FM is the right FM to meet u r requirement then go to se80 , give function Group name XWPD, Click on the Include Folder there u will find all the includes including ZXWPDU02 , right click on that include , create option is there so from there u can create the include with same name then add all the logic there .

Good Luck.