on 06-18-2007 6:29 AM
Hello,
I have been given this information for what is wanted in a proforma invoice:
Print a field for bankcode. Field name = tempBANKL.
Logic:
Select BANKS BANKL into tempBANKS tempBANKL from T012
where BUKRS = ls_bil_invoice-HD_ORG-COMP_CODE and HBKID = tempHBKID.
What do I need of nodes in my window in order to implement this ?
Thanks in advance.
Hi peter,
Please check your code. You have done some incorrect nesting.
Regards,
Subodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi peter,
Try out what rajshekar has suggested. I should be your solution.
I wrongly interpreted your query.
Rajshekar's solution should work.
Regards,
Subodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Your select stmnt should be
Select BANKS BANKL
into <b>(tempBANKS, tempBANKL)</b>
from T012
where BUKRS = ls_bil_invoice-HD_ORG-COMP_CODE
and HBKID = tempHBKID.
Regards
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi peter,
Please donot mention the field BANKL in slect query twice.
Select BANKS BANKL into tempBANKS
from T012
where BUKRS = ls_bil_invoice-HD_ORG-COMP_CODE and HBKID = tempHBKID.
should work.
Regards,
Subodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Peter,
I think you need to mention the tempHBKID in the input parameter.
Fill the input parameters with the fields which be used as input (for query).
and mention the fields which you will be displaying in the output in the output parameters tab of INITIALIZATION tab.
Regards,
Subodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You should have declared the tempHBKID in global parameters. Plz check.
As you are using this in the program code, it needs to be passed as Input/Import.
Regards
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. Of course, global def. The ABAP for the bank code has been made like this:
Select BANKS BANKL
into tempBANKS tempBANKL
from T012
where BUKRS = ls_bil_invoice-HD_ORG-COMP_CODE
and HBKID = tempHBKID.
Now it returns that tempBANKL is not expected. Is it not possible to select data into more than one field in Smartforms ? Sorry for all these questions.
Hi
In the program line node just before the Text node where you need to print the Bank code, pass ls_bil_invoice-HD_ORG-COMP_CODE and tempHBKID as Inputs/Import and tempBANKS and tempBANKL as ouput/Export
In this program line node, you can have your select statement. And, the text node below, will have &tempBANKL& as content.
Regards
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.