Application Development and Automation 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: 
Read only

Smartform data pull

Former Member
0 Likes
1,776

Hi,

currently in my smartform The data for bank details is getting pulled from table bnka which holds good when we have to pull data for all company codes

But when we want to print the bank details from table t012k table based on specific company code

Like we want to print bank details for company code p004 only and not A series

what are we supposed to do

1 ACCEPTED SOLUTION
Read only

former_member1716
Active Contributor
0 Likes
1,575

nidhi1994,

You have to make the modifications in your code Logic/Driver Program. From what i understand it is a simple business requirement, altering your Driver Program should get the Job done for you.

Validate the necessary conditions line company code and query the respective table accordingly.

Check in debugging of your code logic and make changes in relevant code lines that should help you achieve your requirement.

Regards!

9 REPLIES 9
Read only

former_member1716
Active Contributor
0 Likes
1,576

nidhi1994,

You have to make the modifications in your code Logic/Driver Program. From what i understand it is a simple business requirement, altering your Driver Program should get the Job done for you.

Validate the necessary conditions line company code and query the respective table accordingly.

Check in debugging of your code logic and make changes in relevant code lines that should help you achieve your requirement.

Regards!

Read only

0 Likes
1,575

But when I make changes in the smartform global definition section

the report data is getting problems

The search help which was working fine doesnt workn now

Read only

0 Likes
1,575

nidhi1994,

Can you Please let us know the issue in detail? Like what change you did and what is not working after that?

Recommend you to raise a separate question for the same.

Regards!

Read only

0 Likes
1,575

Bank details is pulled from BNKA table BANKA field.

Changes required is, That if,

1) For Z ( Company Code starts from A) the same configuration continues.

2) For Y ( Company Code starts from P) Bank details should be pulled from T012k table Bankn field.

this is for the smartform.

Read only

1,575

nidhi1994,

As informed earlier, you need to control the Logic to fill your internal table (the one populates the main table) based on the company code.You need to do this change in Code Logic/Driver program where the logic is written to populate the table.In simple words your code should be as below:

IF Company code is Z

*** Fetch the data from BNKA table for BANKA field

ELSEIF Company code is Y

*** Fetch the data from T012k table for BANKA field

ENDIF.

Regards!

Read only

Former Member
0 Likes
1,575

thanks a lot for your help

Read only

akjayaa
Explorer
0 Likes
1,575

Hi i have joined as a sap abap consultant i dont know how to edit the smart forms

and i dont know to understand the logic

kindly help me out how to edit and undersatnd logics query

Read only

0 Likes
1,575

Thanks for coming to SAP Community for answers. Please post your question as a new question here:

Since you're new in asking questions here, check out our tutorial about asking and answering questions (if you haven't already), as it provides tips for preparing questions more effectively, that draw responses from our members.

Please note, that your post here won't be answered.

Read only

0 Likes
1,575

and help me out for mpp