on 04-07-2008 5:39 AM
Hello All,
We have standard static credit limit check activated.. But, we donot want this to be checked while simulation of standard sales order BAPI... i.e. the check should remain,,, but we have a requirement that the customer should be allowed to see the result of his desired sales order's simulation, even if his credit is zero, for which we are using the bapi BAPI_SALESORDER_SIMULATE,, problem is that the BAPI performs the static credit limit check and returns with static credit limit exceed error,, is their any way to bypass this check during sales order simulation only...????
any help in this regard would be highly appreciatable..
thanks
Hi Zahid,
Generally SAP skip all these kind of checks when you are running BAPI in simulation. If you see the following code is there in BAPI
*BAPIs run without dialog
CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
This FM initialise the global flag FLAG_DIALOG_STATUS to X.
and in the FM SD_ORDER_CREDIT_CHECK, inside that subroutine SYSTEM_REACTION it checks for this flag as initial or not. if it is X then it don't raise the exception of Credit Limit.
What my intrest is to know even if BAPI shows the error in RETURN table are you able to see other Sales Order details or it is not at all processing it furhter, also which SAP version you are workingo on?
OR
Implement the BADI BADI_SD_CM (FSCM_CREDIT_CHECK_ORDER). In this method use FM 'DIALOG_GET_NO_DIALOG' and see if the global flag FLAG_DIALOG_STATUS is equal to X or not. If it is X then initialize NO_CHECK variable.
Hope this will help you.
Regards,
Mandar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you mandar for the reply,,,, NO the bapi does not bring any pricing or processed information,,,,moreover my client has R/3 4.6C and I cannot find the defined BADI there....any ways..
I have managed it in the following way,,, and giving details if some one else ever encounter this issue can try it as well....
My requirement was to call sales order simulation through a BAPI , which was called from an external webdynpro for java application,, for that i had already programmed a wrapper over the original sales order simulation bapi, as per my requirements,,, now towards the solution.,.,, before calling the actual simulation bapi from my own BAPI wrapper,, I export the kunnr into memory (internal session memory),,, and in the function module "LVKMPU01" I check whether the kunnr in memory is actually the kunnr being processed by the module,, and set the parameter -- BYPASS-CREDITCHECK = 'X' ,, afcourse an access key was required since this was a system modification.. and thats it....!!!!
Edited by: Zahid Murtaza on Apr 8, 2008 6:40 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.