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: 

Reg Smartforms-NACE

Former Member
0 Kudos
122

Dear all

I have developed a SMARTFORM for RFQ and i have devlo[ped a driver program for that also. When i taking print out only layout is coming , no data is coming .,,

From the standard program , i have copied the the line

FORM entry_neu USING ent_retco ent_screen.

endform.

Inside that i have writen my logic. But when i am executiong and taking the printoyt , i am getting an error as Proceesing routine ENTRY_NEU doe not exist in ZMM_AGREEMENT(driver pgm)

What could be the error ?

Has anyone faced this???

Regards

Karthikeyan.P

8 REPLIES 8

Former Member
0 Kudos
78

Hi

How did you create the driver program,

Is it copy of existing standard driver program.

If yes, than the routine ENTRY_NEU should be there.

If NO, than check the routine used in your driver program and use the same in NACE

Regards

MD

0 Kudos
78

Dear Madhan Doraikannan

I have not copied fully . I am wrting my own logic. Only that Form routine ENTRY_NEU i have copied frm tht standard. is it right?? If not plz send me some sample coding

FORM entry_neu USING ent_retco ent_screen.

*FORM entry_neu USING p_ebeln ent_screen.

DATA: l_druvo LIKE t166k-druvo,

l_nast LIKE nast,

l_from_memory.

  • l_doc TYPE meein_purchase_doc_print.

  • CLEAR ent_retco.

IF nast-aende EQ space.

l_druvo = '1'.

ELSE.

l_druvo = '2'.

ENDIF.

DATA:v_fname TYPE rs38l_fnam.

GET PARAMETER ID 'ANF' FIELD p_ebeln.

SELECT ebeln ebelp txz01 matnr meins ktmng

FROM ekpo INTO CORRESPONDING FIELDS OF TABLE it_ekpo

WHERE ebeln = p_ebeln .

LOOP AT it_ekpo INTO wa_ekpo .

SELECT SINGLE eindt FROM eket

INTO wa_ekpo-eindt

WHERE ebeln = wa_ekpo-ebeln AND

ebelp = wa_ekpo-ebelp .

MODIFY it_ekpo FROM wa_ekpo TRANSPORTING eindt.

CLEAR wa_ekpo.

ENDLOOP.

SELECT SINGLE lifnr waers FROM ekko

INTO (l_lifnr, l_waers)

WHERE ebeln = p_ebeln.

SELECT SINGLE bedat FROM ekko

INTO l_bedat

WHERE ebeln = p_ebeln.

SELECT SINGLE angdt FROM ekko

INTO l_angdt

WHERE ebeln = p_ebeln.

SELECT SINGLE adrnr FROM lfa1

INTO l_adrnr

WHERE lifnr = l_lifnr.

SELECT SINGLE name1 city1 po_box country FROM adrc

INTO (l_name1, l_city1, l_pobox, l_country)

WHERE addrnumber = l_adrnr .

SELECT SINGLE landx FROM t005t

INTO l_landx

WHERE spras = 'EN' AND

land1 = l_country .

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZMM_RFQ_SEALBID1'

IMPORTING

fm_name = v_fname

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

CALL FUNCTION v_fname

EXPORTING

p_ebeln = p_ebeln

l_lifnr = l_lifnr

l_name1 = l_name1

l_city1 = l_city1

l_pobox = l_pobox

l_landx = l_landx

l_waers = l_waers

l_bedat = l_bedat

l_angdt = l_angdt

TABLES

it_ekpo = it_ekpo.

ENDFORM. "entry_neu

This is my coding

Regards

Karthikeyan.P

0 Kudos
78

Hi,

You need to take the entire zcopy of the standard driver program and modify the entry_nue to your requirement. And then assing the zprogram to NACE.

Regards

Karthik D

Former Member
0 Kudos
78

HI

Check the nace entry for the processing output type where driver program is given, Form routine is given as ENTRY_NEU or not....

BR

Lavanya

Former Member
0 Kudos
78

hi

check u have written perform entry_neu..

Former Member
0 Kudos
78

Hi,

The sub-routine has a line

GET PARAMETER ID 'ANF' FIELD p_ebeln.

Are you passing the Purchase doc num to the memory id ANF ???

Please check

-Raj

0 Kudos
78

Dear Raja Chaturvedi

I am passing the RFQ number to the smartforms ... thats y i have done like that

Do u any sample coding??

Kind regards

Karthik

0 Kudos
78

Hi,

There is a note which has the Print programs as well as the smartforms(RFQ is also included) as zip attachment. Search in Service Market Place.

You need a SID to view all the below links.

Note Number : [852250|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=852250]

The attachment ([y640psf_20070609.zip|https://service.sap.com/~sapidb/012006153200000566552007E/y640psf_20070609.zip]) includes the new forms and print programs in customers namespace with instructions.

Hope this is helpful.

Regards

Karthik D