Skip to Content
0
Oct 24, 2011 at 08:05 AM

Applicant data with batch input. fields are not filled PB10 - IT22

50 Views

Hi,

im pssing pb10 with bdc. First screen is filled correctly. But in second screen (depending on Infotype 22) i'm not able to fill with data. So mandatory check gives an error. Any idea?

PERFORM: bdc_dynpro      USING 'SAPMPAP4' '0100',
           bdc_field       USING 'BDC_OKCODE' '=UPD',
           bdc_field       USING 'PSPAR-BEGDA' d_beginn,
           bdc_field       USING 'Q4000-WERKS' '0001',
           bdc_field       USING 'P0001-BTRTL' '0001',
           bdc_field       USING 'Q4000-APGRP' '1',
           bdc_field       USING 'Q4000-APTYP' aptyp,
           bdc_field       USING 'Q0002-ANREX' anrex,
           bdc_field       USING 'P0002-VORNA' vorna,
           bdc_field       USING 'P0002-NACHN' nachn,
           bdc_field       USING 'Q0002-GBPAS' d_gbpas,
           bdc_field       USING 'P0002-SPRSL' sprac,
           bdc_field       USING 'P0002-NATIO' natio,
           bdc_field       USING 'P0006-LAND1' land1,
           bdc_field       USING 'P0006-STRAS' stras,
           bdc_field       USING 'P0006-PSTLZ' pstlz,
           bdc_field       USING 'P0006-ORT01' ort01,
           bdc_field       USING 'P0006-TELNR' telnr,
           bdc_field       USING 'EMAIL' stamm-email,
           bdc_field       USING 'P4001-SPAPL' aptyp,
 
*IT22
           bdc_dynpro      USING 'MP002200' '2000',
           bdc_field       USING 'BDC_OKCODE' '=UPD',
           bdc_field       USING 'P0022-BEGDA' d_beginn,
           bdc_field       USING 'P0022-ENDDA' '31129999',
           bdc_field       USING 'P0022-SLART' 'XX',
           bdc_field       USING 'P0022-INSTI' 'FH Irgendwo',
           bdc_field       USING 'P0022-SLABS' '50',
           bdc_field       USING 'P0022-EMARK' '1.7',
           bdc_field       USING 'P0022-SLAND' 'DE',
 
           bdc_dynpro      USING 'SAPMPAP4' '0100',
           bdc_field       USING 'BDC_OKCODE' '/EEBAC'.
 
 
  CALL TRANSACTION 'PB10'  USING bdcdata
                           MODE 'E'
                           MESSAGES INTO messtab.