2007 Mar 20 7:22 AM
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?
2007 Mar 20 7:26 AM
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
2007 Mar 20 8:04 AM
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
2007 Mar 20 7:31 AM
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