FM to get WBS element(PS_POSID) by using internal number(PS_PSP_PNR)

1. CALL FUNCTION 'CONVERSION_EXIT_KONPR_OUTPUT'
          EXPORTING
              input  = g_ps_psp_pnr
          IMPORTING
             output = g_ps_posid.

2. CALL FUNCTION 'PSPNUM_INTERN_TO_EXTERN_CONV'
         EXPORTING
* EDIT_IMP =
             INT_NUM        = g_ps_psp_pnr
        IMPORTING
            EXT_NUM        = g_ps_posid
       EXCEPTIONS
            NOT_FOUND = 1
           OTHERS          = 2 .
 
3. WBS element 主数据储存在PRPS,可以过此表得到WBS大多相关信息。

   DATA: g_ps_posid LIKE prps-posid.

   SELECT SINGLE posid
       FROM prps
       INTO g_ps_posid

 

原文出处:http://blog.csdn.net/hkj900/archive/2008/04/16/2298697.aspx
       WHERE pspnr = g_ps_psp_pnr.

你可能感兴趣的:(function,ext,input,output)