<?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 dialog programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2771324#M645727</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 am working on a report.It is a dialog program.I have to make changes in XK02 transaction.I have created a field called status(lfa1-zzstatus) in this transaction.I have given 4 values for this field(active,balance out,archive,spare parts)When I enter the vendor number,company code(lfb1-sperr) and purchase organisation(lfm1-sperm) in XK02 transaction and select archive from status field,the purchase organisation and company code should be both deleted.Can anyone tell me logic to delete these two fields.I have written the logic to block these two fields when the archive option is selected from status field.How can I frame the logic to delete these 2 fields?I am sending you the logic I have written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF lfa1-zzstatus EQ c_ar.&lt;/P&gt;&lt;P&gt;   IF RF02K-EKORG IS INITIAL OR&lt;/P&gt;&lt;P&gt;      RF02K-BUKRS IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE E000 WITH TEXT-002 TEXT-003 TEXT-004.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;      LFB1-SPERR = 'X'.&lt;/P&gt;&lt;P&gt;      LFM1-SPERm = 'X'.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2007 13:36:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-11T13:36:44Z</dc:date>
    <item>
      <title>dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2771324#M645727</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 am working on a report.It is a dialog program.I have to make changes in XK02 transaction.I have created a field called status(lfa1-zzstatus) in this transaction.I have given 4 values for this field(active,balance out,archive,spare parts)When I enter the vendor number,company code(lfb1-sperr) and purchase organisation(lfm1-sperm) in XK02 transaction and select archive from status field,the purchase organisation and company code should be both deleted.Can anyone tell me logic to delete these two fields.I have written the logic to block these two fields when the archive option is selected from status field.How can I frame the logic to delete these 2 fields?I am sending you the logic I have written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF lfa1-zzstatus EQ c_ar.&lt;/P&gt;&lt;P&gt;   IF RF02K-EKORG IS INITIAL OR&lt;/P&gt;&lt;P&gt;      RF02K-BUKRS IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE E000 WITH TEXT-002 TEXT-003 TEXT-004.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;      LFB1-SPERR = 'X'.&lt;/P&gt;&lt;P&gt;      LFM1-SPERm = 'X'.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 13:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2771324#M645727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T13:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2771325#M645728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete these fields mean clear the values of these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put this code on PAI of the specific screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF LFA1-ZZSTATUS EQ 'ACTIVE'&lt;/P&gt;&lt;P&gt;LFA1-EKORG = SPACE "or repective structure's EKORG&lt;/P&gt;&lt;P&gt;LFB1-BUKRS = SPACE "or repective structure's BUKRS&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishnendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 13:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/2771325#M645728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T13:48:08Z</dc:date>
    </item>
  </channel>
</rss>

