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

User Exit Problem (Parameter)

Former Member
0 Likes
835

Hi guys, i need your help. Now, i developed user exit "EXIT_SAPLMLSL_001" and this is my logic (pseudocode) in the include program "ZXMLUU07",Enhacement Assignment: "SRVLIMIT"

Pseudocode :

If Document Type (EKKO-BSART) = “ZPK” (PO-Special)

On ”Create Transaction” (ME21N) or ”Change Transaction” (ME22N):

Compare Overall Limit and Expected Value

If (Overall Limit) not equal (Expected Value)

Output Error Message (”Overall limit must be equal with Expected Value”)

Else

do nothing

The problem that i don't have access to EKKO-BSART in this function module :

FUNCTION EXIT_SAPLMLSL_001.

*"----


""Lokale Schnittstelle:

*" CHANGING

*" VALUE(I_ESUH) LIKE ESUH STRUCTURE ESUH

*" EXCEPTIONS

*" NOT_ALLOWED

*"----


INCLUDE ZXMLUU07.

ENDFUNCTION.

As you can see, only I_ESUH that i can access. How i get value EKKO-BSART in this user exit?

3 REPLIES 3
Read only

Former Member
0 Likes
600

Hi,

Check whether a PONUMBER EBELN field exits in ESUH structure. I.,e too it is changing paramter.

You can't use this include of exit for this,

Search for other include, so that atleast the PO number should be available to process the exit. if BSART is not there using EBELN you can fetch that and use it.

reward if useful

regards,

Anji

Read only

0 Likes
600

Hi Anji,thank you for your quick answer for my question. I have investigate in ESUH structure and i cannot find EBELN field and that means i can' connect this structure with table ekko. You suggest me to use another include but i can't find the one that suit with my problem (Check Limit in Service Specification). Can you give another way to solve my problem ? Thank you.

Regards,

========

Satria B

Read only

Former Member
0 Likes
600

hai

Why not u use select query with single clause in ur coding.Thats all.

tables : ekko.

select single BSART from ekko where ................

**Please reward suitable points***

With Regards

Navin Khedikar