Application Development and Automation 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: 
Read only

nace configuration

Former Member
0 Likes
858

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.

1 ACCEPTED SOLUTION
Read only

Hvshal4u
Active Participant
0 Likes
819

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

5 REPLIES 5
Read only

Former Member
0 Likes
819

Hi Venkat

Had you maintained all the three parameters in Nace i.e. Program Name , Form name and Form routine in NACE.

Regards

Nikhil 

Read only

Hvshal4u
Active Participant
0 Likes
820

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

Read only

Former Member
0 Likes
819

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.

Read only

Former Member
0 Likes
819

thank u vishal i got the solution.

Read only

Hvshal4u
Active Participant
0 Likes
819

Hi Venkat ,

Please mark the correct answer & close the thread.

Thanks

Vishal