<?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: adding a import parameter to BADI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670663#M1447855</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;Put the below code in ur badi implementation....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note :&lt;/STRONG&gt; Here i am reading RMQEA table's status text variable..&lt;/P&gt;&lt;P&gt;In ur case it will be form type which global in ur Report program HINCEPF1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : V_VAL TYPE STRING VALUE '(SAPLQPL1)RMQEA-STATUSTEXT'. 
FIELD-SYMBOLS : &amp;lt;V_STS&amp;gt; TYPE RMQEA-STATUSTEXT.



ASSIGN (V_VAL) TO &amp;lt;V_STS&amp;gt;.
    IF &amp;lt;V_STS&amp;gt; IS ASSIGNED.
      MOVE &amp;lt;V_STS&amp;gt; TO V_SYSSTAT.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ur case it will be look like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : V_VAL TYPE STRING VALUE '(HINCEPF1)REPONAME'. 
FIELD-SYMBOLS : &amp;lt;V_STS&amp;gt; TYPE PIN_REPNM.   "Change the type if does not workk

ASSIGN (V_VAL) TO &amp;lt;V_STS&amp;gt;.
    IF &amp;lt;V_STS&amp;gt; IS ASSIGNED.
      MOVE &amp;lt;V_STS&amp;gt; TO V_SYSSTAT.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the value of V_SYSSTAT variable....i hope it will give u the correct form type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE :&lt;/STRONG&gt; Fild symbol is very critical thing so take care...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Mar 2010 08:17:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-15T08:17:58Z</dc:date>
    <item>
      <title>adding a import parameter to BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670660#M1447852</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;I have a standard program  HINCEPF1 for HR which generates two forms :&lt;/P&gt;&lt;P&gt;1)Form 3A&lt;/P&gt;&lt;P&gt;2)Form 6A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A BADI has been created by someone to upload the files in this standard program to insert data for the MARCH month in these above forms either one you select in the selection screen.The function module to upload the file which has been used is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'WS_FILENAME_GET'

**      call function 'WS_UPLOAD'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this function modules works fine when you select form 6A on selection screen but in case of Form 3A it works but does not uploads all the data .It only takes first 7 fields .So to upload data when we select Form 3A I have changed the BADI and added the function module :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;KD_GET_FILENAME_ON_F4 and
ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;to upload the file which works fine but this does not work with Form 6A.&lt;/P&gt;&lt;P&gt;So i want to put a CASE in the BADI that when we select Form 6A then the 1st function module should work and when Form 3A is selected then the above function module should work .&lt;/P&gt;&lt;P&gt;                                 But when i try to add a importing parameter to BADI it does not let me do that . It gives a message that :&lt;/P&gt;&lt;P&gt;'Parameters/exceptions of inherited methods or events cannot be changed'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 07:14:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670660#M1447852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T07:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: adding a import parameter to BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670661#M1447853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Are you using BADI HR_IN_PF_REP_MARCH.As it is standard you cannot insert one more import parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is filer depended on Country..&lt;/P&gt;&lt;P&gt;If it is possible to find form type using country you can use filter depended implementation&lt;/P&gt;&lt;P&gt;If you cannot make it out than you need to read the global variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPONAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which contain the form type in the badi.you can use field symbol to read that global data..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 07:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670661#M1447853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T07:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: adding a import parameter to BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670662#M1447854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your solution .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes i want to import Reponame from global data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u tell me how can i do that . I mean where and how to put the import parameter as i am new to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u send me the code or something regarding this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 08:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670662#M1447854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T08:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: adding a import parameter to BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670663#M1447855</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;Put the below code in ur badi implementation....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note :&lt;/STRONG&gt; Here i am reading RMQEA table's status text variable..&lt;/P&gt;&lt;P&gt;In ur case it will be form type which global in ur Report program HINCEPF1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : V_VAL TYPE STRING VALUE '(SAPLQPL1)RMQEA-STATUSTEXT'. 
FIELD-SYMBOLS : &amp;lt;V_STS&amp;gt; TYPE RMQEA-STATUSTEXT.



ASSIGN (V_VAL) TO &amp;lt;V_STS&amp;gt;.
    IF &amp;lt;V_STS&amp;gt; IS ASSIGNED.
      MOVE &amp;lt;V_STS&amp;gt; TO V_SYSSTAT.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ur case it will be look like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : V_VAL TYPE STRING VALUE '(HINCEPF1)REPONAME'. 
FIELD-SYMBOLS : &amp;lt;V_STS&amp;gt; TYPE PIN_REPNM.   "Change the type if does not workk

ASSIGN (V_VAL) TO &amp;lt;V_STS&amp;gt;.
    IF &amp;lt;V_STS&amp;gt; IS ASSIGNED.
      MOVE &amp;lt;V_STS&amp;gt; TO V_SYSSTAT.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the value of V_SYSSTAT variable....i hope it will give u the correct form type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE :&lt;/STRONG&gt; Fild symbol is very critical thing so take care...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 08:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670663#M1447855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T08:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: adding a import parameter to BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670664#M1447856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 08:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670664#M1447856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T08:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: adding a import parameter to BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670665#M1447857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the type of the field symbol to type any and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks RAJ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 08:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-import-parameter-to-badi/m-p/6670665#M1447857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T08:37:07Z</dc:date>
    </item>
  </channel>
</rss>

