<?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: GET PARAMETER from FBCJ ... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590968#M1274583</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;If the 'CJCAJONR' does not exist for the current user in the SAP Memory,&lt;/P&gt;&lt;P&gt;the GET PARAMETER ID .... will not be successful.&lt;/P&gt;&lt;P&gt;That is why the SY-SUBRC becomes &lt;STRONG&gt;4&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So &lt;STRONG&gt;once you pass some value in that parameter id&lt;/STRONG&gt;  after that the GET PARAMETER ID..&lt;/P&gt;&lt;P&gt;will be successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the bellow code &lt;STRONG&gt;sy-subrc will be not be 4&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;It will be 0.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: _CJNR TYPE CJNR .
DATA: _BUKRS    TYPE BUKRS.

CALL TRANSACTION 'FBCJ' .
_BUKRS = '1000'.
SET PARAMETER ID 'BUK' FIELD  _BUKRS .
CLEAR _BUKRS.


_CJNR = '1'.
SET PARAMETER ID 'CJCAJONR' FIELD   _CJNR .
CLEAR  _CJNR.

GET PARAMETER ID 'BUK' FIELD _BUKRS . " ok (sy-subrc = 0)
GET PARAMETER ID 'CJCAJONR' FIELD _CJNR . " sy-surbrc = 0
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2009 11:13:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-15T11:13:30Z</dc:date>
    <item>
      <title>GET PARAMETER from FBCJ ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590963#M1274578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there. I've got such a strange problem ...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a Z-program from which I have to CALL 'FBCJ' transaction and then pull out parameters from FBCJ into my z-program ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: _CJCAJONR TYPE cjnr .
  DATA: _BUKRS    TYPE bukrs .

  CALL TRANSACTION 'FBCJ' .
  GET PARAMETER ID 'BUK' FIELD _BUKRS . " ok (sy-subrc = 0)
  GET PARAMETER ID 'CJCAJONR' FIELD _CJCAJONR . " sy-surbrc = 4
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that _BUKRS is taken correctly, ... but CJCAJONR  not &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the reason? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS.&lt;/P&gt;&lt;P&gt;Both parameters are taken from the same FBCJ screen (Screen: 0050 Cash Journal Entry Screen for New Users), in technical information there is:&lt;/P&gt;&lt;P&gt;-&amp;gt; parameter: BUK, datatype: BUKRS&lt;/P&gt;&lt;P&gt;-&amp;gt; parameter: CJCAJONR, datatype: CJNR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590963#M1274578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER from FBCJ ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590964#M1274579</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;If parameter: CJCAJONR has datatype: CJNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then why are u writing this:&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'CJCAJONR' FIELD _CJCAJONR . " sy-surbrc = 4&lt;/P&gt;&lt;P&gt;instead of this&lt;/P&gt;&lt;P&gt;GET PARAMETER ID 'CJCAJONR' FIELD _CJNR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mudit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590964#M1274579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T10:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER from FBCJ ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590965#M1274580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piotr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please first  go to the transaction FBCJ .&lt;/P&gt;&lt;P&gt;Then fill the values of  cjnr and bukrs .&lt;/P&gt;&lt;P&gt;Then once execute your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590965#M1274580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T10:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER from FBCJ ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590966#M1274581</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 checked the tcode :FBCJ .i t too had a similar situation . it seems that global parameted id is getting cleard some where in the program in case of &lt;/P&gt;&lt;P&gt;CJCAJONR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you will not be able to fetch the values of this pram using get.&lt;/P&gt;&lt;P&gt;.To solve this you can create a pram id inside the tocde FBCJ and then pass that parm into the abab code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;safel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:43:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590966#M1274581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T10:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER from FBCJ ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590967#M1274582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Safel007&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I checked FBCJ code and there are few &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET PARAMETER ID 'BUK' FIELD f_comp_code.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but no &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET PARAMETER ID 'CJCAJONR' FIELD ... .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's probably why we don't have that parameter in our Z-program  ... &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. I'm searching in first line solutions not modifying standard &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mudit Batra&lt;/STRONG&gt;    &lt;/P&gt;&lt;P&gt;Because I've got no _CJNR variable declared  so how could I use it? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pinaki Mukherjee&lt;/STRONG&gt;    	&lt;/P&gt;&lt;P&gt;no result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590967#M1274582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER from FBCJ ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590968#M1274583</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;If the 'CJCAJONR' does not exist for the current user in the SAP Memory,&lt;/P&gt;&lt;P&gt;the GET PARAMETER ID .... will not be successful.&lt;/P&gt;&lt;P&gt;That is why the SY-SUBRC becomes &lt;STRONG&gt;4&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So &lt;STRONG&gt;once you pass some value in that parameter id&lt;/STRONG&gt;  after that the GET PARAMETER ID..&lt;/P&gt;&lt;P&gt;will be successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the bellow code &lt;STRONG&gt;sy-subrc will be not be 4&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;It will be 0.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: _CJNR TYPE CJNR .
DATA: _BUKRS    TYPE BUKRS.

CALL TRANSACTION 'FBCJ' .
_BUKRS = '1000'.
SET PARAMETER ID 'BUK' FIELD  _BUKRS .
CLEAR _BUKRS.


_CJNR = '1'.
SET PARAMETER ID 'CJCAJONR' FIELD   _CJNR .
CLEAR  _CJNR.

GET PARAMETER ID 'BUK' FIELD _BUKRS . " ok (sy-subrc = 0)
GET PARAMETER ID 'CJCAJONR' FIELD _CJNR . " sy-surbrc = 0
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:13:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590968#M1274583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: GET PARAMETER from FBCJ ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590969#M1274584</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 checked the same scenario and I too getting same type of issue.&lt;/P&gt;&lt;P&gt;Better we need to check for guidance from &lt;STRONG&gt;SAP.&lt;/STRONG&gt; or we need to check for any notes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-parameter-from-fbcj/m-p/5590969#M1274584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:46:35Z</dc:date>
    </item>
  </channel>
</rss>

