<?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: reg work area in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638257#M1283313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why can you merge all the fields under once condition like, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If wa-f1 ne '@@@' and wa-f2 ne '@@@' and wa-f3 ne '@@@' and .... wa-f150 ne '@@@'.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2009 05:45:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-08T05:45:17Z</dc:date>
    <item>
      <title>reg work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638256#M1283312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii all,&lt;/P&gt;&lt;P&gt;          I am updating parts master using BAPI in which there are 150 fields for me to update..&lt;/P&gt;&lt;P&gt;the notation in the excel are as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if field  is not to be updated we give the cell value as '@@@'&lt;/P&gt;&lt;P&gt;if field value is blank we give it as space(normal way)&lt;/P&gt;&lt;P&gt;if field need to be updated with a value we give that value, in appropriate cells of excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got these values into internal table but the problem is, i have to check for fields that are not be updated so that in the BAPIX structure i have leave these  fields blank..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can loop at internal table and manually check like&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA.&lt;/P&gt;&lt;P&gt;   IF WA-F1 NE '@@@'.&lt;/P&gt;&lt;P&gt;   .....&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF WA-F2 NE '@@@'.&lt;/P&gt;&lt;P&gt;  ...&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt; ....upto 150 fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i reduce this redundancy by accessing the fields of work area dynamically,probably by field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with reagrds,&lt;/P&gt;&lt;P&gt;sandeep akella.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638256#M1283312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: reg work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638257#M1283313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why can you merge all the fields under once condition like, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If wa-f1 ne '@@@' and wa-f2 ne '@@@' and wa-f3 ne '@@@' and .... wa-f150 ne '@@@'.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638257#M1283313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: reg work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638258#M1283314</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;checkout following sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM GET_FIELD
 IF &amp;lt;FS1&amp;gt; IS ASSIGNED.
    UNASSIGN &amp;lt;FS1&amp;gt;.
  ENDIF.
  IF &amp;lt;FS2&amp;gt; IS ASSIGNED.
    UNASSIGN &amp;lt;FS2&amp;gt;.
  ENDIF.
  CLEAR: G_STRING,G_CHARATINN.
  CONCATENATE 'WA_ITAB_OUTPUT' '-' WA_CONF_SRC-IT_FNAME INTO G_STRING.
  G_CHARATINN = WA_CONF_SRC-CHAR_ATNAM.
  ASSIGN (G_STRING) TO &amp;lt;FS2&amp;gt;.
  IF SY-SUBRC = 4.
    IF &amp;lt;FS2&amp;gt; IS ASSIGNED.
      UNASSIGN &amp;lt;FS2&amp;gt;.
    ENDIF.
  ENDIF.
ENDFORM.
**********************************************************************************

 LOOP AT IT_CONF_SRC INTO WA_CONF_SRC.
    PERFORM GET_FIELD.
    IF &amp;lt;FS1&amp;gt; IS ASSIGNED.
      PERFORM BDC_FIELD       USING 'RCTMS-MNAME(01)' &amp;lt;FS1&amp;gt;.
      UNASSIGN &amp;lt;FS1&amp;gt;.
    ENDIF.
    IF &amp;lt;FS2&amp;gt; IS ASSIGNED.
      PERFORM BDC_FIELD       USING 'RCTMS-MWERT(01)' &amp;lt;FS2&amp;gt;.
      UNASSIGN &amp;lt;FS2&amp;gt;.
    ENDIF.
 ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here 'WA_ITAB_OUTPUT' is ur workarea for that and it_conf table contain field list ( 150 fields ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hOPE THIS HELPFUL TO YOU...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chintan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638258#M1283314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: reg work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638259#M1283315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sandep &lt;/P&gt;&lt;P&gt;u can do by field symbols so that u do not need to write 150 if statements&lt;/P&gt;&lt;P&gt;simple code is as folows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbol &amp;lt;fs&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab into wa.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;      UNASSIGN &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;      ASSIGN COMPONENT sy-index OF STRUCTURE wa TO&lt;/P&gt;&lt;P&gt;      &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF  &amp;lt;fs&amp;gt; eq  '@@'.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;        &amp;lt;fs&amp;gt; = ''.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this u can do , u read fields of the work area and if they coantian '@@' value u can blank them else keep them same &lt;/P&gt;&lt;P&gt;hope this resolvs ur problem&lt;/P&gt;&lt;P&gt;afzal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638259#M1283315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: reg work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638260#M1283316</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;To reduce the redundancy... use field symbols.... you can just copy and paste the code given below.... which is easily understandable...&lt;/P&gt;&lt;P&gt;we assign components of the work area one by one to field symbol in do loop and check with the value of that field symbol if it is @@@ or not...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS : &amp;lt;fs_wa&amp;gt; TYPE ANY.
DATA w_type TYPE string.
DATA w_comp TYPE i.

DESCRIBE FIELD wa TYPE w_type COMPONENTS w_comp.
LOOP AT itab INTO wa.
  DO w_comp TIMES.
    ASSIGN COMPONENT sy-index OF STRUCTURE wa TO &amp;lt;fs_wa&amp;gt;.
    IF &amp;lt;fs_wa&amp;gt; NE '@@@'.
      ....
    ENDIF.
  ENDDO.
  UNASSIGN &amp;lt;fs_wa&amp;gt;.  
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638260#M1283316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: reg work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638261#M1283317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;        thank you all, now i am able to access the fields of work area dynamically..but  i want to get the name of the component so that i can  update the same field in BAPIX structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;sandeep akella.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:40:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638261#M1283317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: reg work area</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638262#M1283318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sandeep &lt;/P&gt;&lt;P&gt;u cant get the name of the component instead u can use little trick&lt;/P&gt;&lt;P&gt;i mean as u are pointing to the component the same way u can point to the component of bapi with field symbol&lt;/P&gt;&lt;P&gt; simple code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field symbols fs1 , fs2.&lt;/P&gt;&lt;P&gt;    do .&lt;/P&gt;&lt;P&gt;   ASSIGN COMPONENT sy-index OF STRUCTURE wa to &amp;lt;fs1&amp;gt;&lt;/P&gt;&lt;P&gt;   .&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;if &amp;lt;fs1&amp;gt; ne '@@'.&lt;/P&gt;&lt;P&gt;assign component sy-index of bapi to &amp;lt;fs2&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fs2&amp;gt;  =  &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;assign component sy-index of bapi to &amp;lt;fs2&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fs2&amp;gt; = ' '.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;so ti will be one to one poitning form waork area to bapi&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;azfal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 07:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-work-area/m-p/5638262#M1283318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T07:02:21Z</dc:date>
    </item>
  </channel>
</rss>

