2009 Jul 03 8:03 AM
Hi Experts,
while creation/change of sales order,If sales order net value is zero or 0.01 no credit checks.in other words greater than 0.01 netvalue of so, it shoud undergo credit checks.( Means Header->Status, Credit status = 'Not Approved". )
Actually i am trying to write logic in routine 901 ( include RVKMP901).but i am unable to reach the requirment.Can anybody how i can reach above requirment.
Regards
Jaya Reddy
2009 Jul 03 12:03 PM
Hello,
you could use code similar to this:
CHECK: xvbak-netwr < ls_zkredit-wert.
else no credit check
vbap-cmpnt = ' '.
MOVE charx TO bypass-security.
MOVE charx TO bypass-static_limit.
MOVE charx TO bypass-dynamic_limit.
MOVE charx TO bypass-documentvalue.
MOVE charx TO bypass-critical_fields.
MOVE charx TO bypass-reviewdate.
MOVE charx TO bypass-open_items.
MOVE charx TO bypass-oldest_op.
MOVE charx TO bypass-dunning_level.
MOVE charx TO bypass-user1.
MOVE charx TO bypass-user2.
MOVE charx TO bypass-user3.
The ls_credit-wert is a local field which is set from a table according to Sales order Type/ Salesorg/ Payment-condition
Regards Wolfgang
2009 Jul 06 1:50 PM
Hi Wolfgang,
Thanks for valuable information. Can you let me ls_zkredit-wert and ls_credit-wert any difference. one more thing how we can reset credit block status " Not Approved" .In your code, vbap-cmpnt = ' '. system no credit checks. vbap-cmpnt = 'x' is credit block status is " Not Approved" . i am very confusing about this.
Regards
Jaya Reddy