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: 

Population of the New/Used Indicator field

Former Member
0 Kudos

Hi

Please suggest me to code for the below requirment.

Population of the XGBR_AM (New/Used Indicator) is accomplished by finding the proper offset account

to the Fixed Asset clearing account '1000110000'. Using the value from Z1DSEG2-ZZEOSE for

the line item being processed, search the other line items in the inbound idoc

at the E1FISEG matching the value in Z1DSEG2-ZZEOSE to the E1FISEG-ZUONR field.

If a match is found and the value in E1FISEG-HKONT is '1000000012',

the indicator should be populated with 'A'.

If no match is found, use the value from the E1FISEG-ZUONR field on the line item being processed

and search the other line items in the inbound idoc to find a match at the E1FISEG-ZUONR

field level. If a match is found and the value in E1FISEG-HKONT is '1000000013'

then the indicator is 'B' else populate with an 'A'.

am writing code in include

Thanks in advance.

Thanks.

Ramu.

1 REPLY 1

former_member480923
Active Contributor
0 Kudos

I don't think it's possible in Samrtform as of now, since we are talikg of doing an Hardcopy printout of the form so dynamic columns will not be possible. We can do a way around and find the number of columns in the dynamic table display and then we can have different number of tables with fixed columns in the smartform, and call the tables based on the number of columns in the dynamic table. It's a very crude solution but then we don't have any thing else.

Hope That Helps

Anirban M.