Skip to Content
0
Former Member
Jan 29, 2007 at 02:27 PM

Equipment BOM error in Function module? very urgent

105 Views

Hi All,

I am creating a equipment BOM using Function module 'CSAI_BOM_CREATE'. After all the data is filled i am getting error that incomplete data. I am not able to find what else is required. Please help.

CLEAR wa_csin.

  • wa_csin-aennr = '009900159470'.

wa_csin-datuv = sy-datum.

wa_csin-equnr = '000000000000300245'.

wa_csin-stlan = 'T'.

wa_csin-stlty = 'E'.

CLEAR wa_stkob.

wa_stkob-stlty = 'E'.

CLEAR wa_stzub.

wa_stzub-stlty = 'E'.

CLEAR wa_stpob.

wa_stpob-stlty = 'E'.

wa_stpob-postp = 'T'.

wa_stpob-posnr = '0010'.

wa_stpob-meins = 'PCE'.

wa_stpob-menge = 1.

wa_stpob-potx1 = '----


'.

wa_stpob-datuv = sy-datum.

APPEND wa_stpob TO tab_stpob.

CLEAR wa_stpob.

wa_stpob-stlty = 'E'.

wa_stpob-postp = 'T'.

wa_stpob-posnr = '0020'.

wa_stpob-meins = 'PCE'.

wa_stpob-menge = '1'.

wa_stpob-potx1 = '001 level: Sharat Test 23X27X38'.

wa_stpob-datuv = sy-datum.

APPEND wa_stpob TO tab_stpob.

CLEAR wa_stpob.

wa_stpob-stlty = 'E'.

wa_stpob-postp = 'T'.

wa_stpob-posnr = '0030'.

wa_stpob-meins = 'PCE' .

wa_stpob-menge = '1'.

wa_stpob-potx1 = '----


'.

wa_stpob-datuv = sy-datum.

APPEND wa_stpob TO tab_stpob.

CLEAR wa_stpob.

wa_stpob-stlty = 'E'.

wa_stpob-idnrk = '0814MSD-14-15'.

wa_stpob-postp = 'T'.

wa_stpob-posnr = '0090'.

wa_stpob-meins = 'PC'.

wa_stpob-menge = '1'.

wa_stpob-datuv = sy-datum.

APPEND wa_stpob TO tab_stpob.

CLEAR wa_stpob.

wa_stpob-stlty = 'E'.

wa_stpob-idnrk = '0814MSD-14-01'.

wa_stpob-postp = 'T'.

wa_stpob-posnr = '0140'.

wa_stpob-meins = 'PC'.

wa_stpob-menge = '1'.

wa_stpob-datuv = sy-datum.

APPEND wa_stpob TO tab_stpob.

CLEAR wa_stpob.

BREAK CHANDRSH_ITE.

CALL FUNCTION 'CSAI_BOM_CREATE'

EXPORTING

ecsin = wa_csin

estkob = wa_stkob

estzub = wa_stzub

  • FL_NO_CHANGE_DOC = ' '

  • FL_COMMIT_AND_WAIT = ' '

  • FL_NO_COMMIT_WORK = ' '

  • FL_ALE = ' '

fl_default_values = 'X'

IMPORTING

fl_warning = g_flwarning

astlnr = g_warn_stlnr

TABLES

t_stpob = tab_stpob

EXCEPTIONS

error = 1

OTHERS = 2

.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Thanks

Sharat.Chandra