cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP in UR

Former Member
0 Kudos

I need to write an Update Rule which will populate the Storage Location field. The Storage Location could for example (below). What I want is to put the 10 value, the source does not contain a value for Storage Location. Thanks

S010

S013

S019

S021

S031

O010

O011

O012

O013

O019

O021

Accepted Solutions (1)

Accepted Solutions (1)

former_member188975
Active Contributor
0 Kudos

Hi Niten,

You can use code like:

result = COMM_STRUCTURE-field+2(2).

Hope this helps...

Former Member
0 Kudos

Thanks Bhanu,

Almost there my code will basically be something like

If <Another field is not blank> AND COMM_STRUCTURE-field+2(2) = 10

then

Result <that stor_loc i.e I need to put the first part in as well)

former_member184494
Active Contributor
0 Kudos

Niten,

try

data: ystorloc type string.

ystorloc = COMM_STRUCTURE-field+2(2).

if comm_structure-<your field> is not initial AND ystorloc EQ '10'.

result = COMM_STRUCTURE-field.

else.

Result=0.

endif.

Arun

P.S This is pretty much the same what Bhanu has mentioned - if you could give the Infoobject names - the code can be modified further...

Former Member
0 Kudos

Hi Arun,

Thanks very much for that. The fields are:

COMM_STRUCTURE is 0STOR_LOC

<your field> is 0EISBE_QTY

I should be able to fill in the blanks, have awarded points

Answers (0)