cancel
Showing results for 
Search instead for 
Did you mean: 

help on smartform

Former Member
0 Kudos

helo experts!!!!!!1

while creating p.o smartform i unable to accept (ekpo-netwr,ekpo-netpr)fields

these are currency type fields....how to solve ,and how to display the plant address details in form where i have to wrtie the code in form and se38 how to display the data in different windows in form ?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

u can write the code any where either in programe or SMARTFORM.

If u r writing logic in programe u have take final values in one internal table and

u should pass this int.table to the smartform.

In smartform u have to print the values using internal table fields.

For u r first question ekpo-netwr ,ekpo-netpr.

first u check in the programe that values of coming or not.

I think u r error messages is reference field is missing.

so u need to mention reference field while creating structure for that.

I think u r using custom program for smartform not a standard programe

Rewardpoints if useful.

Regards

(YUGANDHAR.P)

Former Member
0 Kudos

yes wat u r saying is correct ,its not standard program creating new form

i want to display comapny address details in address from table t100w where i have to write the code in smartform send code

ihow to solve the currency fields................................while giving "print-preview from se38 getting error "ekpo-nepr " is refernce type............

pls help me out

Former Member
0 Kudos

Hi shankar,

Before displaying in the window you need to pass that currency field into another new field. for that you need to write the code for assigning to another field in a coding window.

Regards,

Navaneeth.

Former Member
0 Kudos

send me source code how to write code and where in samrtform?

former_member189629
Active Contributor
0 Kudos

while creating p.o smartform i unable to accept (ekpo-netwr,ekpo-netpr)fields

these are currency type fields....?

Din't get that...

U will get the plant address details in table T001W by passing the plant code.

To create windows, right click on the page expand Create and create window.

now to display your variables, Create text in the window by right click again and add your text variable like &variable&. These must either be defined in the Global definition, (if u retrieving data from the form) or in the for =m interface, if u sending data from a driver program.

Reward if helpful,

Karthik

Former Member
0 Kudos

HI KARTHIK

i am getting this error

"Field "WA_EKPO-NETPR" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement . . . . . . . ."

if i want to display the t001w table data in address window where i have to write the code and declaration in form interface & gloabal def. and in driver program

its my urgent requirement. send along with code

former_member189629
Active Contributor
0 Kudos

Shankar,

Add WA_EKPO-NETPR as the output parameter in the program lines node b4 displaying it...

Coming to the addresses, better do a SELECT on T001W in ur driver program and export it thru the function module to the smartform. Declare a T001W structure in the form interface and display the address wherever u want.

follow these Steps:

1) Do a select on T001w in your driver pgm using the WERKS...

2) Pas the itab in the exporting parameters of the FM

3) Declare it in the Form Interface's Tables tab (it_t001w like t001w)

4) now dislpay ur values

Reward if helpful,

Karthik

Former Member
0 Kudos

i am getting dump

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was

not caught and

therefore caused a runtime error.

The reason for the exception is:

Function module "/1BCDWB/SF00000010" was called

with the parameter "IT_T001W".

This parameter is not defined.

former_member189629
Active Contributor
0 Kudos

Shankar,

have u declared IT_T001W in the form interface's tables tab? if not do so...

Former Member
0 Kudos

HI KARTHIK

i did wat u say ...............but it giving dump

also help currency fields netpr,netwr....pls send step by step in where?

its my urgent issue....

my internal table is (it_ekpo)

most urgent

former_member189629
Active Contributor
0 Kudos

Heres how u need to call the smartform FM

*--- Call Smartform function module without hard coding

CALL FUNCTION G_FM_NAME

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

WA_PO = WA_PO

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

<b> it_ekpo = it_ekpo

IT_ITEM = IT_ITEM

it_t001w = it_t001w</b>

  • EXCEPTIONS

  • FORMATTING_ERROR = 1

  • INTERNAL_ERROR = 2

  • SEND_ERROR = 3

  • USER_CANCELED = 4

  • OTHERS = 5

.

IF SY-SUBRC <> 0.

*--- On Failure display standard Message

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

<b>IT_T001W & IT_EKPO will have to be declared in teh form interface.</b>

If u still dont get, send me a more details abt the problem u r facinmg and also ur code if poss

Former Member
0 Kudos

i did everything ,abt currency fields.....error is

"Reference field WA_EKPO-NETPR unknown in form". how to solve and how to solve address details in address window