cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed on Mapping logic

Former Member
0 Kudos

Hi guys,

I have logic like,

pernr>logic>pernr.

Pernr is the first field.

Whenever the logic fails, it should not process rest of the below fields.

it should directly go to next record.

Any ideas.......

santosh.

Accepted Solutions (1)

Accepted Solutions (1)

former_member518917
Participant
0 Kudos

You can achieve this using gloval variable.

1. right click on the parent node of pernr. -


>Add Variable (say ifPernrTrue)

2. Map this variable with the same logic and give value "true" if logic successful and "false" if logic fails

Whenever the logic fails, it should not process rest of the below fields.

3.Map rest of fields as :

ifPernrTrue (the variable u created) \

-


> if (without else ) -


> fields...

source filed /

Former Member
0 Kudos

Thanks for response.

I tried applying the logic mentioned ....

But, i am unable to find "Add Variable", when i right click on the parent node of pernr.

my structure is like this,

MT_Masterfile

---Record

-


Pernr

-


vorna

-


field3

-


Field4

we are on PI 7.1.

pls guide, where do i need to locate global variable " Add Variable".

Former Member
baskar_gopalakrishnan2
Active Contributor
0 Kudos

This might be helpful

/people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable

Former Member
0 Kudos

Thanks guys.....

This helped a lot.......

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi all,

Using global varible, i am able to accomplish requirement upto some extent.

But, now the problem is , it is creating EMPTY records.

Further, it is creating blank lines in output file.

Any idea, if there is an option to skip the record completely , if logic fails.....

Regards

Edited by: santosh koraddi on Dec 22, 2010 11:04 PM

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Please elaborate more on your problem. Give some example

Former Member
0 Kudos

Hi Santhosh,

Yes, we can achieve it. But it all depends on the logic. Please give us some info about the logic, so will be able to help you out.

Thanks,

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Please elaborate more on your requirement. We can certainly help.

Former Member
0 Kudos

Thanks for your responses.....

Elaborated logic is,

Pernr>logic> pernr.

Logic

if persg eq E & stat2 eq 3.

then pernr --> pernr(output).

{ select employees only & employees who are active}.

if above logic fails, i want to skip all the further records & go directly to next record.

Thanks.

Former Member
0 Kudos

You can Process this request by placing an condition on the root node and maintaining the same Logic to the elements under it.

I.e. Use if Pernr >Logicexists then map constant to the node..You have to use If --then .

It would be much better if you can provide us more information in regard to the logic and structure.

Regards,

Sainath Chutke

Former Member
0 Kudos

Hi Santhosh,

Can you please let us know the logic for which you can looking for this requirement.

Yes, we can achieve this requirement but it can be done only when we know the exact logic behind. Please elaborate.

Thanks,