<?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: Facing problem in return in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-in-return/m-p/7281703#M1531556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No..Thats where I am facing problem..whta is going wrong..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Oct 2010 13:08:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-06T13:08:59Z</dc:date>
    <item>
      <title>Facing problem in return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-in-return/m-p/7281701#M1531554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello;&lt;/P&gt;&lt;P&gt;   I ahve created the simple BAPI with some constant data but when i execute this bapi my internal shows 0 entries...pls throw some light on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION BAPI_SF_OMKAR.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(MANDT) TYPE  SFLIGHT-MANDT&lt;/P&gt;&lt;P&gt;*"     VALUE(CARRID) TYPE  SFLIGHT-CARRID&lt;/P&gt;&lt;P&gt;*"     VALUE(SEATSMAX) TYPE  SFLIGHT-SEATSMAX&lt;/P&gt;&lt;P&gt;*"     VALUE(SEATSOCC) TYPE  SFLIGHT-SEATSOCC&lt;/P&gt;&lt;P&gt;*"     VALUE(CURRENCY) TYPE  SFLIGHT-CURRENCY&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(RETURN) TYPE  BAPIRET2&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      ITAB STRUCTURE  ZSFOM&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If carrid is initial.&lt;/P&gt;&lt;P&gt;RETURN-type = 'E'.&lt;/P&gt;&lt;P&gt;RETURN-message = 'Carrid is Null ,enter valid carrid'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: BEGIN OF sampledata,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 CARRID TYPE c LENGTH 3 VALUE 'AA',&lt;/P&gt;&lt;P&gt;                 SEATSMAX TYPE i value '200',&lt;/P&gt;&lt;P&gt;                 SEATSOCC TYPE i value '100',&lt;/P&gt;&lt;P&gt;                 currency TYPE c LENGTH 3 VALUE 'USD'.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;         CONSTANTS end OF sampledata.&lt;/P&gt;&lt;P&gt;         SELECT MANDT CARRID SEATSMAX SEATSOCC CURRENCY FROM SFLIGHT INTO TABLE ITAB where carrid = 'AA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc ne 0 or ITAB[] is initial.&lt;/P&gt;&lt;P&gt;RETURN-type = 'E'.&lt;/P&gt;&lt;P&gt;RETURN-message = 'DATA found for selection'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: Omkar, no matter how many IDs you are using, all threads of this kind will be locked, the IDs deleted, and we will look into further options if we are forced to. Stop it now!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;locked by: Thomas Zloch on Oct 6, 2010 3:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 12:47:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-in-return/m-p/7281701#M1531554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T12:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Facing problem in return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-in-return/m-p/7281702#M1531555</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 getting any records in return table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anmol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 13:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-in-return/m-p/7281702#M1531555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Facing problem in return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-in-return/m-p/7281703#M1531556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No..Thats where I am facing problem..whta is going wrong..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 13:08:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-in-return/m-p/7281703#M1531556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T13:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Facing problem in return</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-in-return/m-p/7281704#M1531557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I tried your code, it is fetching data for me, check your sflight table any entries for 'AA' and have some questions for your code, why you use constant what is the use of tht, again if you are hardcodding where carrid then why you are importing carrid and other data, just curious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anmol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 13:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-in-return/m-p/7281704#M1531557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T13:32:21Z</dc:date>
    </item>
  </channel>
</rss>

