<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BADI Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009472#M957900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        I tried urs also, but not working yar, how can i correct yar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2008 10:05:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-13T10:05:12Z</dc:date>
    <item>
      <title>BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009467#M957895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        I am developing a Bapi into a Badi, regarding automatic postings, now am facing the following error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using following oops method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF_EX_BADI_SD_BILLING~INVOICE_DOCUMENT_CHECK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam getting the Error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL_FUNCTION_CONFLICT_LENG&lt;/P&gt;&lt;P&gt;"HEAD" is the correct type, its length is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Coding :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TYPES : begin of ggoodsmvt_header1,&lt;/P&gt;&lt;P&gt; ref_doc_no type bapi2017_gm_head_01-ref_doc_no,&lt;/P&gt;&lt;P&gt; pstng_date type bapi2017_gm_head_01-pstng_date,&lt;/P&gt;&lt;P&gt; doc_date type bapi2017_gm_head_01-doc_date,&lt;/P&gt;&lt;P&gt; pr_uname type bapi2017_gm_head_01-pr_uname,&lt;/P&gt;&lt;P&gt; END OF ggoodsmvt_header1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*internal table&lt;/P&gt;&lt;P&gt; DATA : HEAD TYPE TABLE OF ggoodsmvt_header1.&lt;/P&gt;&lt;P&gt;*work area&lt;/P&gt;&lt;P&gt; DATA : WAH TYPE ggoodsmvt_header1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WAH-ref_doc_no   =  wa_vbrk-vbeln.&lt;/P&gt;&lt;P&gt;WAH-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;WAH-doc_date = sy-datum.&lt;/P&gt;&lt;P&gt;WAH-pr_uname = sy-uname.&lt;/P&gt;&lt;P&gt;APPEND WAH TO HEAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            goodsmvt_header             = HEAD&lt;/P&gt;&lt;P&gt;              goodsmvt_code               = ggoodsmvt_code&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TESTRUN                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        GOODSMVT_HEADRET            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            materialdocument            = gmaterialdocument&lt;/P&gt;&lt;P&gt;            matdocumentyear             = gmatdocumentyear&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            goodsmvt_item               = itabw&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        GOODSMVT_SERIALNUMBER       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            return                      = greturn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   What could be the error, i think HEAD is the problem, bcoz &lt;/P&gt;&lt;P&gt;usually we give&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA : ggoodsmvt_header  TYPE STANDARD TABLE OF  bapi2017_gm_head_01 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in oops we cant assign header line, is it, pls advise me solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 09:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009467#M957895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T09:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009468#M957896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the header structure is mismatching i think. try this code.&lt;/P&gt;&lt;P&gt;DATA : ggoodsmvt_header TYPE bapi2017_gm_head_01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hear header table only hold one record at a time. so that ggoodsmvt_header should be workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Boobalan Suburaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 09:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009468#M957896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T09:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009469#M957897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should define your header like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  head TYPE BAPI2017_GM_HEAD_01.   (this is not a table!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 09:53:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009469#M957897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T09:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009470#M957898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boopalan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I tried ur idea but I am getting the same error yar, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Type conflict when calling a function module (field length). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to correct this yar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 09:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009470#M957898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T09:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009471#M957899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi john&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Actually i had used like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ggoodsmvt_header  TYPE STANDARD TABLE OF  bapi2017_gm_head_01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 10:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009471#M957899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T10:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009472#M957900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        I tried urs also, but not working yar, how can i correct yar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 10:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009472#M957900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T10:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009473#M957901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;Check below things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
--TYPES : begin of ggoodsmvt_header1,--
--ref_doc_no type bapi2017_gm_head_01-ref_doc_no,--
--pstng_date type bapi2017_gm_head_01-pstng_date,--
--doc_date type bapi2017_gm_head_01-doc_date,--
--pr_uname type bapi2017_gm_head_01-pr_uname,--
--END OF ggoodsmvt_header1.--

*internal table
--DATA : HEAD TYPE TABLE OF ggoodsmvt_header1.--
*work area
--DATA : WAH TYPE ggoodsmvt_header1.--
DATA: wah TYPE BAPI2017_GM_HEAD_01. "Add this

WAH-ref_doc_no = wa_vbrk-vbeln.
WAH-pstng_date = sy-datum.
WAH-doc_date = sy-datum.
WAH-pr_uname = sy-uname.
--APPEND WAH TO HEAD.--

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
--goodsmvt_header = HEAD--
goodsmvt_header = wah  "Add
goodsmvt_code = ggoodsmvt_code

TESTRUN = ' ' 
IMPORTING

GOODSMVT_HEADRET = 
materialdocument = gmaterialdocument
matdocumentyear = gmatdocumentyear
TABLES
goodsmvt_item = itabw

GOODSMVT_SERIALNUMBER = 
return = greturn

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comment the code which i striked off and put the code where i have comment ADD.&lt;/P&gt;&lt;P&gt;This will solve ur issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 10:10:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009473#M957901</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-06-13T10:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009474#M957902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you are on another release than I am. Just check the parameter definition of 'BAPI_GOODSMVT_CREATE' in your system and use the same TYPE definition for your header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 10:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009474#M957902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T10:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009475#M957903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below links. this links are explain with example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1383395"&gt;&lt;/A&gt;|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1383395"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://www.saptechies.com/bapi_goodsmvt_create-to-post-goods-movement/|http://www.saptechies.com/bapi_goodsmvt_create-to-post-goods-movement/]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Boobalan Suburaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 10:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009475#M957903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T10:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009476#M957904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        When i try as you said, am getting the error as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module interface, you can specify only     &lt;/P&gt;&lt;P&gt;fields of a specific type and length under "GOODSMVT_ITEM".&lt;/P&gt;&lt;P&gt;Although the currently specified field                     &lt;/P&gt;&lt;P&gt;" " is the correct type, its length is incorrect.          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we correct yar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 10:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009476#M957904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T10:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009477#M957905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajaram,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How u defined the itab  itabw.?&lt;/STRONG&gt; This is not the problem with header work area declaration change. Check all ur FM parameter declarations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open BAPI_GOODSMVT_CREATE fm in SE37. check the data type for all the FM parameters. All the parameters u r passing to the FM must be of same type as they defined in the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rest all things will not change as i suggested earlier. Only data declaration will change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Paste all ur declarations so that it will be easy to find out the&lt;/STRONG&gt; &lt;STRONG&gt;problem.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 10:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009477#M957905</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-06-13T10:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009478#M957906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod&lt;/P&gt;&lt;P&gt;This is my declarations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ggoodsmvt_header TYPE bapi2017_gm_head_01.&lt;/P&gt;&lt;P&gt;TYPES : begin of itab5,&lt;/P&gt;&lt;P&gt;move_type type BAPI2017_GM_ITEM_CREATE-move_type,&lt;/P&gt;&lt;P&gt;mvt_ind type BAPI2017_GM_ITEM_CREATE-mvt_ind,&lt;/P&gt;&lt;P&gt;material type BAPI2017_GM_ITEM_CREATE-material,&lt;/P&gt;&lt;P&gt;entry_qnt type BAPI2017_GM_ITEM_CREATE-entry_qnt,&lt;/P&gt;&lt;P&gt;move_stloc type BAPI2017_GM_ITEM_CREATE-move_stloc,&lt;/P&gt;&lt;P&gt;stge_loc type BAPI2017_GM_ITEM_CREATE-stge_loc,&lt;/P&gt;&lt;P&gt;po_number type BAPI2017_GM_ITEM_CREATE-po_number,&lt;/P&gt;&lt;P&gt;po_item type BAPI2017_GM_ITEM_CREATE-po_item,&lt;/P&gt;&lt;P&gt;batch type BAPI2017_GM_ITEM_CREATE-batch,&lt;/P&gt;&lt;P&gt;plant type BAPI2017_GM_ITEM_CREATE-plant,&lt;/P&gt;&lt;P&gt;end of itab5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA : itabw  TYPE TABLE OF itab5.&lt;/P&gt;&lt;P&gt; DATA: wah TYPE BAPI2017_GM_HEAD_01. "Add this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            goodsmvt_header             = wah&lt;/P&gt;&lt;P&gt;              goodsmvt_code               = ggoodsmvt_code&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TESTRUN                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        GOODSMVT_HEADRET            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            materialdocument            = gmaterialdocument&lt;/P&gt;&lt;P&gt;            matdocumentyear             = gmatdocumentyear&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            goodsmvt_item               = itabw&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        GOODSMVT_SERIALNUMBER       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            return                      = greturn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 11:14:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009478#M957906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T11:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: BADI Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009479#M957907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja Ram,&lt;/P&gt;&lt;P&gt;Never use ur own structures for defining parameters passed to any FM. Change ur declarations like below. It will work fine.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Delete this piece of code from here&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DATA : ggoodsmvt_header TYPE bapi2017_gm_head_01.&lt;/P&gt;&lt;P&gt;TYPES : begin of itab5,&lt;/P&gt;&lt;P&gt;move_type type BAPI2017_GM_ITEM_CREATE-move_type,&lt;/P&gt;&lt;P&gt;mvt_ind type BAPI2017_GM_ITEM_CREATE-mvt_ind,&lt;/P&gt;&lt;P&gt;material type BAPI2017_GM_ITEM_CREATE-material,&lt;/P&gt;&lt;P&gt;entry_qnt type BAPI2017_GM_ITEM_CREATE-entry_qnt,&lt;/P&gt;&lt;P&gt;move_stloc type BAPI2017_GM_ITEM_CREATE-move_stloc,&lt;/P&gt;&lt;P&gt;stge_loc type BAPI2017_GM_ITEM_CREATE-stge_loc,&lt;/P&gt;&lt;P&gt;po_number type BAPI2017_GM_ITEM_CREATE-po_number,&lt;/P&gt;&lt;P&gt;po_item type BAPI2017_GM_ITEM_CREATE-po_item,&lt;/P&gt;&lt;P&gt;batch type BAPI2017_GM_ITEM_CREATE-batch,&lt;/P&gt;&lt;P&gt;plant type BAPI2017_GM_ITEM_CREATE-plant,&lt;/P&gt;&lt;P&gt;end of itab5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : itabw TYPE TABLE OF itab5.&lt;/P&gt;&lt;P&gt;DATA: wah TYPE BAPI2017_GM_HEAD_01. "Add this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;to here and replace with below declarations&lt;/STRONG&gt;        &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: wah TYPE BAPI2017_GM_HEAD_01,
          ggoodsmvt_code TYPE BAPI2017_GM_CODE,
          gmaterialdocument TYPE BAPI2017_GM_HEAD_RET-MAT_DOC,
          gmatdocumentyear TYPE BAPI2017_GM_HEAD_RET-DOC_YEAR,
         itabw TYPE STANDARD TABLE OF BAPI2017_GM_ITEM_CREATE,
         greturn TYPE STANDARD TABLE OF BAPIRET2.

"Replace declaration for work area of itabw also if u have any 
"with TYPE BAPI2017_GM_ITEM_CREATE.

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = wah
goodsmvt_code = ggoodsmvt_code

*TESTRUN = ' ' 
IMPORTING

*GOODSMVT_HEADRET = 
materialdocument = gmaterialdocument
matdocumentyear = gmatdocumentyear
TABLES
goodsmvt_item = itabw
*GOODSMVT_SERIALNUMBER = 
return = greturn.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If u carefully observe the declarations all are of same type as&lt;/STRONG&gt; &lt;STRONG&gt;they are in FM.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 13:21:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-error/m-p/4009479#M957907</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-06-13T13:21:26Z</dc:date>
    </item>
  </channel>
</rss>

