2015 May 04 5:56 AM
Dear experts,
i created my zpgm and zsmartform and i assigned to the 'EF' application in nace,while executing in me22n purchase order no is not getting how to get that purchase order number,please help me.
2015 May 04 8:29 AM
Hi Venkat ,
Use the structure NAST inside your form routine same will be filled at runtime.
Now you can use NAST-OBJKY to capture the value of Purchase order no.
Also you have to use TABLES : NAST. inside your code.
Thanks
Vishal
Hi Venkat ,
Use the structure NAST inside your form routine same will be filled at runtime.
Now you can use NAST-OBJKY to capture the value of Purchase order no.
Also you have to use TABLES : NAST. inside your code.
Thanks
Vishal
2015 May 04 8:07 AM
Hi Venkat
Had you maintained all the three parameters in Nace i.e. Program Name , Form name and Form routine in NACE.
Regards
Nikhil
2015 May 04 8:29 AM
Hi Venkat ,
Use the structure NAST inside your form routine same will be filled at runtime.
Now you can use NAST-OBJKY to capture the value of Purchase order no.
Also you have to use TABLES : NAST. inside your code.
Thanks
Vishal
2015 May 04 8:34 AM
hi vishal,
inside form endform i written code like this
FORM ENTRY USING RETCODE XSCREEN.
TABLES:NAST,
TNAPR.
DATA:L_EBELN TYPE EBELN.
DATA:L_FONAME TYPE TDSFNAME,
FM_NAME TYPE RS38L_FNAM.
XSCREEN = US_SCREEN.
L_EBELN = NAST-OBJKY.
SELECT EBELN BUKRS AEDAT ERNAM FROM EKKO INTO TABLE T_FINAL WHERE EBELN = L_EBELN.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSAPLE_FORM'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
* EXCEPTIONS
* NO_FORM = 1
* NO_FUNCTION_MODULE = 2
* OTHERS = 3
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION FM_NAME
TABLES
T_FINAL = T_FINAL.
ENDFORM.
2015 May 04 8:46 AM
2015 May 04 9:37 AM
Hi Venkat ,
Please mark the correct answer & close the thread.
Thanks
Vishal
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |