Application Development 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: 

Credit block in Sales order create/change

Former Member
0 Kudos
399

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

2 REPLIES 2

Former Member
0 Kudos
99

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

0 Kudos
99

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