<?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: problem with Call Transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-call-transaction/m-p/2901922#M682479</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;Use sy-subrc to get the status whether the Call transcation succesfully completed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : 'UnSuccessfull'.&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;Or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the error handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2007 13:10:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-12T13:10:40Z</dc:date>
    <item>
      <title>problem with Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-call-transaction/m-p/2901921#M682478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus, i'm trying to assign some roles to Tcode PP02, run the recording, perform the mapping, finally running using call transaction. no syntax errors, but no output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: pernr, YHR_00_ROLAUTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INFOTYPES: 0000,&lt;/P&gt;&lt;P&gt;           0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_auth,&lt;/P&gt;&lt;P&gt;        PERNR TYPE PERSNO,&lt;/P&gt;&lt;P&gt;        posin type objid,&lt;/P&gt;&lt;P&gt;        molga type molga,&lt;/P&gt;&lt;P&gt;        plvar type PLVAR,&lt;/P&gt;&lt;P&gt;        ISTAT type ISTAT_D,&lt;/P&gt;&lt;P&gt;        OTYPE type OTYPE,&lt;/P&gt;&lt;P&gt;        SUBTY type SUBTYP,&lt;/P&gt;&lt;P&gt;        INFTY type INFOTYP,&lt;/P&gt;&lt;P&gt;        SOBID type SOBID,&lt;/P&gt;&lt;P&gt;        RELAT type RELAT,&lt;/P&gt;&lt;P&gt;        begda type datum,&lt;/P&gt;&lt;P&gt;        endda type datum,&lt;/P&gt;&lt;P&gt;        zrole type char25,&lt;/P&gt;&lt;P&gt;       END OF ty_auth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_hrp1000    TYPE TABLE OF hrp1000 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_hrp1001    TYPE TABLE OF hrp1001 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_p0000      TYPE TABLE OF pa0000 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_auth       TYPE TABLE OF ty_auth WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_yhr_roles  type table of YHR_00_ROLAUTH with header line,&lt;/P&gt;&lt;P&gt;      it_bdcdata like bdcdata occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      it_bdcmsgcoll like bdcmsgcoll occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_auth.&lt;/P&gt;&lt;P&gt;PERFORM assign_rol_frns.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM assign_rol_frns .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*perform open_group.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMH5A0' '1000'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'PPHDR-SUBTY'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                 '=INSE'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                                   '/00' .&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'PPHDR-PLVAR'&lt;/P&gt;&lt;P&gt;                                  'i_auth-plvar'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'PPHDR-OTYPE'&lt;/P&gt;&lt;P&gt;                                  'i_auth-otype'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'PM0D1-SEARK'&lt;/P&gt;&lt;P&gt;                                  'i_auth-posin'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'PPHDR-INFTY'&lt;/P&gt;&lt;P&gt;                                  'i_auth-infty'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'PPHDR-SUBTY'&lt;/P&gt;&lt;P&gt;                                  'i_auth-subty'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'PPHDR-ISTAT'&lt;/P&gt;&lt;P&gt;                                  'i_auth-istat'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'PPHDR-BEGDA'&lt;/P&gt;&lt;P&gt;                                  'i_auth-begda'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'PPHDR-ENDDA'&lt;/P&gt;&lt;P&gt;                                  'i_auth-endda'.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'MP100100' '2000'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'P1001-SOBID'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'P1001-SCLAS'&lt;/P&gt;&lt;P&gt;                                  'i_auth-sclas'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'P1001-SOBID'&lt;/P&gt;&lt;P&gt;                                  'i_auth-zauth'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=UPD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*perform bdc_transaction using 'PP02'.&lt;/P&gt;&lt;P&gt;*perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call transaction 'PP02' using it_bdcdata&lt;/P&gt;&lt;P&gt;                               mode   'A'&lt;/P&gt;&lt;P&gt;                               update 'S' messages into it_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " assign_rol_frns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  bdc_dynpro&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;PROG       text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;SCR        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form bdc_dynpro using prog scr.&lt;/P&gt;&lt;P&gt;  clear it_bdcdata.&lt;/P&gt;&lt;P&gt;  it_bdcdata-program = prog.&lt;/P&gt;&lt;P&gt;  it_bdcdata-dynpro  = scr.&lt;/P&gt;&lt;P&gt;  it_bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;  append it_bdcdata.&lt;/P&gt;&lt;P&gt;endform.                    "bdc_dynpro&lt;/P&gt;&lt;P&gt;*if fnam =&lt;/P&gt;&lt;P&gt;form bdc_field using fnam fval.&lt;/P&gt;&lt;P&gt;  clear it_bdcdata.&lt;/P&gt;&lt;P&gt;  it_bdcdata-fnam = fnam.&lt;/P&gt;&lt;P&gt;  it_bdcdata-fval = fval.&lt;/P&gt;&lt;P&gt;  append it_bdcdata.&lt;/P&gt;&lt;P&gt;endform.                    "bdc_field&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&amp;amp;      Form  open_group&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*FORM open_group .&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CLIENT                    = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GROUP                     = GROUP&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HOLDDATE                  = SY-DATUM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KEEP                      = KEEP&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER                      = USER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*ENDFORM.                    " open_group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&amp;amp;      Form  close_group&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;     Close group for fr.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*FORM close_group .&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*CALL FUNCTION 'BDC_CLOSE_GROUP'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*ENDFORM.                    " close_group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if i_auth-molga = '06'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 13:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-call-transaction/m-p/2901921#M682478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T13:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-call-transaction/m-p/2901922#M682479</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;Use sy-subrc to get the status whether the Call transcation succesfully completed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : 'UnSuccessfull'.&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;Or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the error handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 13:10:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-call-transaction/m-p/2901922#M682479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T13:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-call-transaction/m-p/2901923#M682480</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;Check whether  &amp;lt;b&amp;gt;form  bdc_field&amp;lt;/b&amp;gt; exists or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 13:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-call-transaction/m-p/2901923#M682480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T13:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-call-transaction/m-p/2901924#M682481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vamsi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look at this:&lt;/P&gt;&lt;P&gt;you wrote: perform bdc_field using 'PPHDR-PLVAR' &amp;lt;b&amp;gt;'i_auth-plvar'&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you will the value of i_auth-plvar, isn't it. Delete the ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore you have to use this:&lt;/P&gt;&lt;P&gt;perform bdc_field using 'PPHDR-PLVAR' &amp;lt;b&amp;gt;i_auth-plvar&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 13:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-call-transaction/m-p/2901924#M682481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T13:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-call-transaction/m-p/2901925#M682482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vamsi,&lt;/P&gt;&lt;P&gt;I feel this statement is wrong&lt;/P&gt;&lt;P&gt;perform bdc_field using 'PPHDR-ENDDA'  'i_auth-endda'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of this pass the internal table without single code ie it should be like&lt;/P&gt;&lt;P&gt;perform bdc_field using 'PPHDR-ENDDA'  i_auth-endda.&lt;/P&gt;&lt;P&gt;change in the other perfoms also .It might work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ratna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 13:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-call-transaction/m-p/2901925#M682482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T13:22:16Z</dc:date>
    </item>
  </channel>
</rss>

