10-02-2014 5:30 PM
Hello gurus,
I have desginaed an smartform, my functional team says, that they will be send the data from ME21N and from message class, but I dont know what I need to do to get information, in my requeriment, I have the data type I need show. Please see below:
-Purchase Order Nbr:EBELN
- BILL TO / FACTURAR A: BURKS
SUPPLIER /PROVEEDOR: LIFNR
- PROMISED DATE / FECHA DE ENTREGA: LFDAT
-Project/Centro de costos KOSTL , DISUB_PSPNR
-Requisition/ Solicitud de Pedido:BANFN
Description/Descripción TXZ01
-Unit/Unidad MEINS
-Quantity/Cantidad BSMNG
My question is, what table type I need to define to get data? How can I catch information to be show in my smartforms???
How can I define a table type a message class to get information and show in my smartforms? it is possible something like this: MESSAGE E004(ZR0) INTO IT_MessageClass
10-02-2014 6:42 PM
Hi,
ME21n means the data is not saved, you have to find a standard program for the Smartforms or the SAPScript to see how SAP get this data. There is not other easy solutions
regards
Fred
10-02-2014 6:42 PM
Hi,
ME21n means the data is not saved, you have to find a standard program for the Smartforms or the SAPScript to see how SAP get this data. There is not other easy solutions
regards
Fred
10-02-2014 6:58 PM
But, my functional team says I dont need make a query, because they will be send information caputered in ME21N to see in smartforms, I only want to know how can I transport this data from ME21N to my smartforms by a message class.
Regards.
10-02-2014 7:15 PM
I have not an ECC to check, but you will find in the standard program something like that :
CALL FUNCTION 'ME_READ_PO_FOR_PRINTING'
EXPORTING
ix_nast = is_nast
ix_screen = ent_screen
IMPORTING
ex_retco = ent_retco
ex_nast = l_nast
doc = l_doc
CHANGING
cx_druvo = iv_druvo
cx_from_memory = l_from_memory.
CHECK ent_retco EQ 0.
that will give you the value put in the memory of the transaction.
And, never trust functional guy ! It's people working on SAP but not enough smart to understand ABAP.
Fred
10-03-2014 11:02 AM
Did you confound message and message, I suppose those functionals are speaking of output control.
Call transaction NACE and look at application EF Purchase order, output type NEU Purchase order.
(Long time ago I found the required interface/signature in form Y640_MMPO_A loaded from SAP Best Practices)
Regards,
Raymond
10-03-2014 3:34 PM
In order that you understand better, I only want to print the Purchase order of ME21N in an smartforms.
Now please let me explain what I'm doing.
First I go to NACE transaction, next , click on EF - Purchase Order and click on Ouput Types.
But, at this point, what I need to do?? could anyone can explain me or anyone have an example, please helpme guys
10-03-2014 4:22 PM
Select your output type and double click processing routines on left side it will show you driver program and the form name. if the message type is custom then you need to develop the form. you can have the same driver program as the standard NEU. but you need to have your custom form which gets the data from the driver program.
10-03-2014 6:54 PM
Could you please explain me with apples?
When I select my ouput types I can see image below:
When I click on edit buttom and then In the line one (Print ouput) I select PDF/Smartform and I need to choose the smartform. and what I need to select in Type?
Is this procees is correct? or I need to do other thing. Please if anyone can explainme step by step Im very n00b in this
10-03-2014 7:03 PM
This step is generally done by functional guys. All you need to do is give them smartform name
If u still want to do the config part, you can select or enter smartform name and thats it. you can leave type as blank.
10-03-2014 8:19 PM
I need to know what I need to do to GET INFORMATION FROM ME21N or ME23N to print my Puershase order in smartform. what program I need to set in NACE, I know I need to pass my smartform but I dont know what program I need to use to get information a then send to my smartforms
10-04-2014 7:19 AM
I would suggest that you check and study the program : sapfm06P, check for subroutine entry_neu and study the code, if u stil have doubts then come back, we'll help.
10-06-2014 8:03 AM
Did you look in your system for Smartform Y640_MMPO_A and driver program Y640FM06P ?
If not found, read 852250 - updated /SMB40/ preconfigured form for 470 and 640 (look in attached zip folder for Y640_PO_Installation.doc) you could then create a new driver report and/or adapt your form.
Regards,
Raymond
10-08-2014 12:09 AM
Hello,
I have used your SAP Note, I generated the smartform and program, I configured the NACE the ouput type.
After this I want to print the PO order in ME23N and when I try to print I get this error: