cancel
Showing results for 
Search instead for 
Did you mean: 

Rules in ALE

Former Member
0 Kudos

Hi Friends,

I am working on Scenerio of P.O. to S.O. conversion. For that I want to put a condition that,when an P.O.. Idoc(ORDERS05) come in system,its PARVW field will be checked, and if its 'WE' that is ship to party, i want to change it to some fix value, say '0000001'. How can I do that?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member537867
Active Contributor
0 Kudos

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Brijesh,

yes we can do it we need to write a UDF for PARVW this is because in ORDERS05

IDOC PARVW filed contains may values like

AG Sold-to party

LF Vendor

WE Ship-to party

RE Bill-to party

SP Carrier

RG Payer

EK Buyer

ZM Responsible employee

VR Representative

CC SPEC2000 customer code

BE Beneficiary

PA Partner for debit memo/direct debit/bank collection

BA Bank sold-to party

BB Bank beneficiary/partner for debit memo

RS Invoicing party

ME Declarant

this values changes dynamically

usind case statements

case WE then

WE = '0001'

if found worth pls do the req

Thanx

Sampath

Former Member
0 Kudos

Hi Sampath,

I guess this is the way I need to go, can u please tell me, how to define this User defined function(UDF)?

from where should i create it and how should i assing it?

Former Member
0 Kudos

Hi,

Map like this way;

PARVW(equals)--> WE --->(then) assign constant(0000001) to your target field.

Boopathi

Former Member
0 Kudos

Hi,

You can do this using graphical mapping.

IF PARVW=WE THEN assign the constant(0000001 to the target.....

Thanks,

Madhu

Former Member
0 Kudos

hi brijesh

In the ALE implementation guide (IMG) choose:

Transaction SALE ® IDoc Interface/Application Link Enabling (ALE) ® Model and Implement Business Processes ® Set-Up Conversion between Sender and Recipient

Proceed as follows:...

1. Create rule: The rules are defined per segment.

2. Maintain rule: Rule maintenance specifies conversion rules at field level.

3. Assign rule to a message type: The assignment specifies when the rule is to be applied. This is sender/recipient and message type specific.

regards

kummari