Skip to Content
author's profile photo Former Member
Former Member

Equipment BOM error in Function module? very urgent

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2007 at 04:21 PM

    Hi All,

    Problem Sovled.

    Thanks to my Friend <b>Shankar Reddy Peddintti</b>.

    There was a small problem in the code. Correct code is given bellow.

    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-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-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-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-05'.

    wa_stpob-postp = 'L'.

    wa_stpob-posnr = '0090'.

    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 = 'L'.

    wa_stpob-posnr = '0140'.

    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.<b></b>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2007 at 05:10 AM

    Hi sharat ,

    Im facing the same problem...can u give me your e-mail id?

    My id is : vishal.bhave@LntInfotech.com

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.