https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/ABAP-Development-qa.xml SAP Community - ABAP Development 2024-07-26T23:00:04.063412+00:00 python-feedgen ABAP Development Q&A in SAP Community https://community.sap.com/t5/technology-q-a/adt-end-of-runnable-exception/qaq-p/13767529 ADT End of Runnable Exception 2024-07-22T10:37:59.137000+02:00 Johannes5 https://community.sap.com/t5/user/viewprofilepage/user-id/1491887 <P>Hi&nbsp;C<SPAN>olleagues</SPAN></P><P><SPAN>I have encountered an exception and need your help to solve it.<BR />Since Last friday, an exception occurs when I try to run my Unit Tests.<BR />My team members are able to run my tests, so the problem applies only to my laptop.<BR />In the error log occurs different logs like begin of runnable and end of runnable.</SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Johannes5_0-1721637257496.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/139812iA939690BDDB4AB65/image-size/medium?v=v2&amp;px=400" role="button" title="Johannes5_0-1721637257496.png" alt="Johannes5_0-1721637257496.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Johannes5_1-1721637279123.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/139813i30B4135F38FB667C/image-size/medium?v=v2&amp;px=400" role="button" title="Johannes5_1-1721637279123.png" alt="Johannes5_1-1721637279123.png" /></span></P><P>&nbsp;</P><P><SPAN>I appreciate every help!!<BR /><BR />Regards<BR />Johannes</SPAN></P> 2024-07-22T10:37:59.137000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/how-to-add-a-custom-tile-from-the-service-binding-the-preview-link-in/qaq-p/13767660 How to add a custom tile from the Service Binding the preview link in eclipse ADT 2024-07-22T12:54:09.745000+02:00 wor_s https://community.sap.com/t5/user/viewprofilepage/user-id/1400452 <P>In Eclipse ADT, I developed a custom business object, and created the Service Binding. The preview link in service binding is generaated and can display the app successfully (it's a simple list reporting app)</P><P><STRONG>How do I have my end users access this app(e.g. by using "Custom Tiles APP") ?</STRONG> So far I see no options, even from&nbsp;<A href="https://community.sap.com/t5/enterprise-resource-planning-q-a/using-custom-tile-app-for-custom-development/qaq-p/12733154" target="_blank">https://community.sap.com/t5/enterprise-resource-planning-q-a/using-custom-tile-app-for-custom-development/qaq-p/12733154</A>&nbsp; i still do not see clear answers. Already check out the links inside it.<BR /><BR />p.s. We use SAP S/4HANA Cloud public edition, <U><STRONG>and currently no license for SAP Business Application Studio.</STRONG></U></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Service binding preview link" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/139859i07BD23DA497D6EB9/image-size/large?v=v2&amp;px=999" role="button" title="eclipse_TPqMZL5unc.png" alt="Service binding preview link" /><span class="lia-inline-image-caption" onclick="event.preventDefault();">Service binding preview link</span></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="App preview" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/139861iAC39C5452D480FE5/image-size/large?v=v2&amp;px=999" role="button" title="chrome_Q2RMOfqmOZ.png" alt="App preview" /><span class="lia-inline-image-caption" onclick="event.preventDefault();">App preview</span></span><SPAN><a href="https://community.sap.com/t5/c-khhcw49343/SAP+S%25252F4HANA+Cloud+Extensibility/pd-p/270c4f37-c335-46e1-bfad-a256637d5e26" class="lia-product-mention" data-product="37-1">SAP S/4HANA Cloud Extensibility</a>&nbsp; <a href="https://community.sap.com/t5/c-khhcw49343/ABAP+Development/pd-p/833755570260738661924709785639136" class="lia-product-mention" data-product="314-1">ABAP Development</a>&nbsp;</SPAN></P> 2024-07-22T12:54:09.745000+02:00 https://community.sap.com/t5/technology-q-a/edi-ordrsp-sales-order-confirmation-failed-idoc/qaq-p/13767690 EDI ORDRSP Sales Order Confirmation Failed Idoc 2024-07-22T13:15:32.215000+02:00 TMASaphir https://community.sap.com/t5/user/viewprofilepage/user-id/652668 <P>Hello Experts,</P><P>I am implemeting SD/MM PO/SO integration with EDI Idoc ORDERS.</P><P>The sales order can be created correctly using the Idoc ORDERS but the confirmation ORDRSP inbound idoc has the error status 51 :&nbsp;Acknowledgment for PO item ... contains quantity variance.</P><P>After debugging, it seems that the ATP check is not triggered that's why there is no confirmation quantity at sales order level.</P><P>If I run the Tcode V_V1 on the sales order, the ATP check is done and the inbound idoc ORDRSP can be integrated successfully to status 53.</P><P>Do you know how I can trigger the ATP check at the same time or just after the sales order get created with idoc ORDERS?</P><P>Thank you for your help</P><P>Best regards,</P><P>Christophe</P> 2024-07-22T13:15:32.215000+02:00 https://community.sap.com/t5/technology-q-a/how-should-the-correct-definition-of-amp-quot-range-amp-quot-be-made/qaq-p/13767953 How should the correct definition of &quot;Range&quot; be made? 2024-07-22T16:09:58.610000+02:00 yalcin_mete https://community.sap.com/t5/user/viewprofilepage/user-id/871979 <P>Hi Master,</P><P>I want to give a "range" condition to the where condition of the select query.</P><P>If you define range as follows and IV_WERKS is given an empty value, the SELECT query does not return data. Even if IV_WERKS is empty, shouldn't the select query return data because I defined Range?</P><P>***********************************************************************<BR /><EM>DATA:&nbsp;LR_WERKS&nbsp;TYPE&nbsp;RANGE&nbsp;OF&nbsp;EKPO-WERKS,</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lS_WERKS&nbsp;LIKE&nbsp;LINE&nbsp;OF&nbsp;&nbsp;LR_WERKS.</EM></P><P><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LS_WERKS-SIGN&nbsp;=&nbsp;'I'.</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LS_WERKS-OPTION&nbsp;=&nbsp;'EQ'.</EM></P><P><EM>&nbsp; &nbsp; &nbsp; &nbsp; LS_WERKS-LOW&nbsp;=&nbsp;IV_WERKS.&nbsp; &nbsp;"IV_WERKS value is taken from the user on the screen.</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp;APPEND&nbsp;LS_WERKS&nbsp;TO&nbsp;LR_WERKS.</EM></P><P><EM>&nbsp; &nbsp; &nbsp;&nbsp;SELECT</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; EKK~BUKRS,</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; EKK~LIFNR,&nbsp;</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;FROM&nbsp;EKKO&nbsp;AS&nbsp;EKK</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;LEFT&nbsp;JOIN&nbsp;EKPO&nbsp;AS&nbsp;EKP&nbsp;ON&nbsp;EKK~EBELN&nbsp;EQ&nbsp;EKP~EBELN</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AND&nbsp;EKP~LOEKZ&nbsp;EQ&nbsp;' '</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AND&nbsp;EKK~BSTYP&nbsp;EQ&nbsp;'F'&nbsp;</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WHERE&nbsp;EKK~BUKRS&nbsp;EQ&nbsp;<a href="https://community.sap.com/t5/user/viewprofilepage/user-id/591350">@iv</a>_BUKRS</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND&nbsp;EKP~WERKS&nbsp;IN&nbsp;<a href="https://community.sap.com/t5/user/viewprofilepage/user-id/12268">@LR</a>_WERKS</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;AND&nbsp;EKK~LIFNR&nbsp;EQ&nbsp;<a href="https://community.sap.com/t5/user/viewprofilepage/user-id/591350">@iv</a>_LIFNR&nbsp;</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; INTO&nbsp;CORRESPONDING&nbsp;FIELDS&nbsp;OF&nbsp;TABLE&nbsp;<a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1384774">@ET</a>_RESULT.</EM></P><P>*************************************************************************************</P><P>&nbsp;</P><P>&nbsp;</P><P>If I define my RANGE as follows, the select query returns the data correctly, even if IV_RANGE is empty.</P><P>********************************************************************</P><P><!-- StartFragment --></P><P><EM>ranges&nbsp;&nbsp;lr_werks&nbsp;for&nbsp;ekpo-werks.</EM><BR /><EM>refresh&nbsp;&nbsp;lr_werks.</EM><BR /><EM>IF&nbsp;&nbsp;iv_werks&nbsp;is&nbsp;not&nbsp;INITIAL.</EM><BR /><EM>move&nbsp;&nbsp;'I'&nbsp;to&nbsp;lr_werks-sign.</EM><BR /><EM>move&nbsp;&nbsp;'EQ'&nbsp;to&nbsp;lr_werks-option.</EM><BR /><EM>move&nbsp;&nbsp;iv_werks&nbsp;to&nbsp;lr_werks-low.</EM><BR /><EM>append&nbsp;&nbsp;lr_werks.</EM><BR /><EM>ENDIF.</EM></P><P>&nbsp; &nbsp; &nbsp;<EM>&nbsp;SELECT</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; EKK~BUKRS,</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; EKK~LIFNR,&nbsp;</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;FROM&nbsp;EKKO&nbsp;AS&nbsp;EKK</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;LEFT&nbsp;JOIN&nbsp;EKPO&nbsp;AS&nbsp;EKP&nbsp;ON&nbsp;EKK~EBELN&nbsp;EQ&nbsp;EKP~EBELN</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AND&nbsp;EKP~LOEKZ&nbsp;EQ&nbsp;' '</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AND&nbsp;EKK~BSTYP&nbsp;EQ&nbsp;'F'&nbsp;</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WHERE&nbsp;EKK~BUKRS&nbsp;EQ&nbsp;<a href="https://community.sap.com/t5/user/viewprofilepage/user-id/591350">@iv</a>_BUKRS</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND&nbsp;EKP~WERKS&nbsp;IN&nbsp;<a href="https://community.sap.com/t5/user/viewprofilepage/user-id/12268">@LR</a>_WERKS</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;AND&nbsp;EKK~LIFNR&nbsp;EQ&nbsp;<a href="https://community.sap.com/t5/user/viewprofilepage/user-id/591350">@iv</a>_LIFNR&nbsp;</EM><BR /><EM>&nbsp; &nbsp; &nbsp; &nbsp; INTO&nbsp;CORRESPONDING&nbsp;FIELDS&nbsp;OF&nbsp;TABLE&nbsp;<a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1384774">@ET</a>_RESULT.</EM></P><P><EM>**********************************************************************************</EM></P><P>If the IV_WERKS-LOW value is full, both selects return data. If the IV_WERKS-LOW value is empty, the 2nd code example works and the 1st code example works. But I think I made the correct range definitions in both.</P><P>How should the correct definition of "Range" be made? I have seen the 1st code example (not working) too many times on the internet.</P><P>Thanks&nbsp;</P> 2024-07-22T16:09:58.610000+02:00 https://community.sap.com/t5/technology-q-a/standard-freight-and-discount-charges-need-to-print-in-po-output-form-in/qaq-p/13768494 Standard Freight and Discount Charges need to print in PO output form in SAP S4 Hana Public Cloud. 2024-07-23T06:19:05.362000+02:00 ChetanKumar https://community.sap.com/t5/user/viewprofilepage/user-id/1397092 <P>Hello SAP Gurus,</P><P>As per the below image freight and discount are maintained.</P><P>While creating a purchase order, In the “Create Purchase Order- advanced” app, pricing elements it is maintained in conditions, so according to this if we take “condition amount “from “itemPricingConditionNode” as per the content form, we will get the total amount of “ PMP0&nbsp; Manual gross price“ Condition type, As we required the total amount of freight and discount.</P><P>Freight and discount both field total amount need to be displayed in form output separately.</P><P>Thanks and Regards,</P><P>Chetan.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChetanKumar_0-1721708170255.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/140275i487C6DFF18DD2231/image-size/medium?v=v2&amp;px=400" role="button" title="ChetanKumar_0-1721708170255.png" alt="ChetanKumar_0-1721708170255.png" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChetanKumar_1-1721708175101.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/140276i9E4309196525203D/image-size/medium?v=v2&amp;px=400" role="button" title="ChetanKumar_1-1721708175101.png" alt="ChetanKumar_1-1721708175101.png" /></span></P><P>&nbsp;</P><P>&nbsp;</P> 2024-07-23T06:19:05.362000+02:00 https://community.sap.com/t5/technology-q-a/hello-team-requirement-is-in-custom-report/qaq-p/13768673 Hello team, Requirement is in custom report. 2024-07-23T08:57:20.581000+02:00 pooja08 https://community.sap.com/t5/user/viewprofilepage/user-id/870075 <P>I am calling the VA05 transaction in the report, I want the output in one internal table to proceed further. How to achieve it. Please help on it.&nbsp;</P><P>Thanks in Advance.</P> 2024-07-23T08:57:20.581000+02:00 https://community.sap.com/t5/spend-management-q-a/creating-namespace-using-aif-cust-tcode-giving-this-function-is-not/qaq-p/13769255 Creating namespace using 'AIF/CUST' Tcode giving 'This function is not Possible' Error. 2024-07-23T15:06:44.080000+02:00 masna_7 https://community.sap.com/t5/user/viewprofilepage/user-id/847448 <P>Hi SAP,</P><P>I am trying to create a namespace for a Proxy, but when I try to enter into transaction, its giving the following errors, any idea how these can be solved ?</P><P>/n/AIF/CUST : Tcode AIF/CUST does not exist</P><P>/AIF/CUST : This function is not possible.</P><P>&nbsp;</P><P>Is this an error with this tcode not configured in my SAP System. Help appreciated. Thanks !</P> 2024-07-23T15:06:44.080000+02:00 https://community.sap.com/t5/technology-q-a/abap-cds-view-date-parameter/qaq-p/13769327 ABAP CDS View date parameter 2024-07-23T16:12:42.344000+02:00 pragi2028 https://community.sap.com/t5/user/viewprofilepage/user-id/790151 <P>hello All,</P><P>how to create a parameter in cds view that i must be able to choose either a month, a week or a date using a single date parameter&nbsp;</P><P>the parameter should show the aggregation of the date as year-&gt;month-&gt;week-&gt;day</P><P>is there any way to achieve this ?</P><P>Thanks in Advance</P><P><a href="https://community.sap.com/t5/c-khhcw49343/ABAP+Development/pd-p/833755570260738661924709785639136" class="lia-product-mention" data-product="314-1">ABAP Development</a>&nbsp;</P> 2024-07-23T16:12:42.344000+02:00 https://community.sap.com/t5/technology-q-a/perfomance-issue-on-hr-abap-program-on-hana/qaq-p/13769423 Perfomance issue on HR Abap program on HANA 2024-07-23T17:51:40.262000+02:00 jean-manuel_gerondaras https://community.sap.com/t5/user/viewprofilepage/user-id/819646 <P>hello experts</P><P>We are facing performance issues on HR programs on HANA.</P><P>These programs have been developed previously on a Oracle database and now moved on HANA db.</P><P>Do you know please if there is something to do to adapt HR programs from ECC/Oracle to ECC/HANA ?</P><P>thanks</P><P>&nbsp;</P> 2024-07-23T17:51:40.262000+02:00 https://community.sap.com/t5/product-lifecycle-management-q-a/bapi-po-change/qaq-p/13769629 BAPI_PO_CHANGE 2024-07-23T23:42:05.793000+02:00 frknkzlrsln https://community.sap.com/t5/user/viewprofilepage/user-id/795091 <P>Hello friends, I want to change the LOEKZ field in EKPO as seen in the codes below. However, although BAPI returns a success message, LOEKZ does not change. Why could it be ?&nbsp;I add my code below .</P><P>&nbsp;</P><P><SPAN>&nbsp;<STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">LOOP&nbsp;</SPAN><SPAN class="">AT&nbsp;</SPAN>lt_wf_td_003&nbsp;<SPAN class="">INTO&nbsp;</SPAN>ls_wf_td_003<SPAN class="">.</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">APPEND&nbsp;</SPAN><SPAN class="">INITIAL&nbsp;</SPAN><SPAN class="">LINE&nbsp;</SPAN><SPAN class="">TO&nbsp;</SPAN>lt_poitem&nbsp;<SPAN class="">ASSIGNING&nbsp;</SPAN>&lt;fs_poitem&gt;<SPAN class="">.</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fs_poitem&gt;<SPAN class="">-</SPAN>po_item&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>ls_wf_td_003<SPAN class="">-</SPAN>ebelp<SPAN class="">.</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fs_poitem&gt;<SPAN class="">-</SPAN>delete_ind&nbsp;<SPAN class="">=&nbsp;</SPAN>abap_false<SPAN class="">.</SPAN></STRONG><BR /><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">APPEND&nbsp;</SPAN><SPAN class="">INITIAL&nbsp;</SPAN><SPAN class="">LINE&nbsp;</SPAN><SPAN class="">TO&nbsp;</SPAN>lt_poitemx&nbsp;<SPAN class="">ASSIGNING&nbsp;</SPAN>&lt;fs_poitemx&gt;<SPAN class="">.</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fs_poitemx&gt;<SPAN class="">-</SPAN>po_item&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>ls_wf_td_003<SPAN class="">-</SPAN>ebelp<SPAN class="">.</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fs_poitemx&gt;<SPAN class="">-</SPAN>po_itemx&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>abap_true&nbsp;<SPAN class="">.</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fs_poitemx&gt;<SPAN class="">-</SPAN>delete_ind&nbsp;<SPAN class="">=&nbsp;</SPAN>abap_true<SPAN class="">.</SPAN></STRONG><BR /><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UNASSIGN<SPAN class="">:&nbsp;</SPAN>&lt;fs_poitem&gt;<SPAN class="">,</SPAN>&lt;fs_poitemx&gt;<SPAN class="">.</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">ENDLOOP</SPAN><SPAN class="">.</SPAN></STRONG><BR /><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">"&nbsp;Call&nbsp;BAPI&nbsp;To&nbsp;Update&nbsp;PO&nbsp;With&nbsp;Items&nbsp;Table</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">CALL&nbsp;</SPAN><SPAN class="">FUNCTION&nbsp;</SPAN><SPAN class="">'BAPI_PO_CHANGE'</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">EXPORTING</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;purchaseorder&nbsp;<SPAN class="">=&nbsp;</SPAN>iv_doc_number+0<SPAN class="">(</SPAN><SPAN class="">10</SPAN><SPAN class="">)</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">TABLES</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">return&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN class="">=&nbsp;</SPAN>lt_return_po</STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;poitem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>lt_poitem</STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;poitemx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>lt_poitemx<SPAN class="">.</SPAN></STRONG><BR /><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">LOOP&nbsp;</SPAN><SPAN class="">AT&nbsp;</SPAN>lt_return_po&nbsp;<SPAN class="">TRANSPORTING&nbsp;</SPAN><SPAN class="">NO&nbsp;</SPAN><SPAN class="">FIELDS&nbsp;</SPAN><SPAN class="">WHERE&nbsp;</SPAN><SPAN class="">type&nbsp;</SPAN><SPAN class="">CA&nbsp;</SPAN><SPAN class="">'EAX'</SPAN><SPAN class="">.</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">EXIT</SPAN><SPAN class="">.</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">ENDLOOP</SPAN><SPAN class="">.</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">IF&nbsp;</SPAN>sy<SPAN class="">-</SPAN>subrc&nbsp;<SPAN class="">NE&nbsp;</SPAN><SPAN class="">0</SPAN><SPAN class="">.&nbsp;</SPAN><SPAN class="">"&nbsp;No&nbsp;Error</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">CALL&nbsp;</SPAN><SPAN class="">FUNCTION&nbsp;</SPAN><SPAN class="">'BAPI_TRANSACTION_COMMIT'</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">EXPORTING</SPAN></STRONG><BR /><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">wait&nbsp;</SPAN><SPAN class="">=&nbsp;</SPAN><SPAN class="">'X'</SPAN><SPAN class="">.</SPAN></STRONG></SPAN><BR /><STRONG>&nbsp; &nbsp; &nbsp; &nbsp;ENDIF.</STRONG></P> 2024-07-23T23:42:05.793000+02:00 https://community.sap.com/t5/technology-q-a/authority-check-for-cost-center-based-on-user-name/qaq-p/13769827 Authority Check-For Cost Center Based on User name 2024-07-24T07:56:39.935000+02:00 janardhan-16 https://community.sap.com/t5/user/viewprofilepage/user-id/1080709 <P>Hi all, I hope all are doing well.</P><P>I'm new to&nbsp; SAP ABAP.</P><P>We have requirement from our client, where a user should be restricted by the user name to a particular cost center.</P><P>For this I have created a Custom Table with fields MANDT, UNAME &amp; KOSTL and i have assigned the cost centers based on User name.</P><P>EX:|UNAME ||KOSTL|</P><P>&nbsp; &nbsp; USER1&nbsp; &nbsp; CC1000</P><P>&nbsp; &nbsp; USER1&nbsp; &nbsp; CC2000</P><P>&nbsp; &nbsp; USER2&nbsp; &nbsp; CC2000</P><P>&nbsp; &nbsp; USER3&nbsp; &nbsp; CC3000</P><P>And also I have developed the code in standard functionality using Exits(Enhancements) EXIT_SAPLKBER_001.<SPAN><BR /></SPAN></P><P>But my code is restricting for all users even they are available in table also.&nbsp;</P><P>Can anyone suggest me a proper approach to get a expected output.</P><P>Thanks in advance.....&nbsp;</P><P>For Your Reference:</P><P><!-- StartFragment --><SPAN><SPAN class="">TYPES</SPAN><SPAN class="">:&nbsp;</SPAN><SPAN class="">BEGIN&nbsp;</SPAN><SPAN class="">OF&nbsp;</SPAN>ts_z_cs_auth<SPAN class="">,</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mandt&nbsp;<SPAN class="">TYPE&nbsp;</SPAN>z_cs_auth<SPAN class="">-</SPAN>mandt<SPAN class="">,</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;uname&nbsp;<SPAN class="">TYPE&nbsp;</SPAN>z_cs_auth<SPAN class="">-</SPAN>uname<SPAN class="">,</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;kostl&nbsp;<SPAN class="">TYPE&nbsp;</SPAN>z_cs_auth<SPAN class="">-</SPAN>kostl<SPAN class="">,</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">END&nbsp;</SPAN><SPAN class="">OF z_</SPAN>ts_cs_auth<SPAN class="">.</SPAN><BR /><BR /><SPAN class="">*&nbsp;Internal&nbsp;Table</SPAN><BR /><SPAN class="">DATA</SPAN><SPAN class="">:&nbsp;</SPAN>lt_user_cs&nbsp;<SPAN class="">TYPE&nbsp;</SPAN><SPAN class="">TABLE&nbsp;</SPAN><SPAN class="">OF z_</SPAN>ts_cs_auth<SPAN class="">.</SPAN><BR /><BR /><SPAN class="">*&nbsp;Work&nbsp;Area</SPAN><BR /><SPAN class="">DATA</SPAN><SPAN class="">:&nbsp;</SPAN>ls_user_cs&nbsp;<SPAN class="">TYPE </SPAN>ts_z_cs_auth<SPAN class="">.</SPAN><BR /><BR /><SPAN class="">*&nbsp;Local&nbsp;Variables</SPAN><BR /><SPAN class="">DATA</SPAN><SPAN class="">:&nbsp;</SPAN>lv_user_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">TYPE&nbsp;</SPAN>sy<SPAN class="">-</SPAN>uname<SPAN class="">,</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lv_cs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">TYPE&nbsp;</SPAN>ts_z_cs_auth<SPAN class="">-</SPAN>kostl<SPAN class="">,</SPAN><BR /><SPAN class="">*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lv_message&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TYPE&nbsp;string,</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lv_authority_check&nbsp;<SPAN class="">TYPE&nbsp;</SPAN><SPAN class="">c&nbsp;</SPAN>LENGTH&nbsp;<SPAN class="">1</SPAN><SPAN class="">.</SPAN></SPAN></P><P><!-- StartFragment --><SPAN>lv_user&nbsp;<SPAN class="">=&nbsp;</SPAN>sy<SPAN class="">-</SPAN>uname<SPAN class="">.</SPAN><BR /><SPAN class="">"&nbsp;Read&nbsp;the&nbsp;authorized&nbsp;cost&nbsp;centers&nbsp;for&nbsp;the&nbsp;user&nbsp;from&nbsp;the&nbsp;custom&nbsp;table</SPAN><BR /><SPAN class="">SELECT&nbsp;</SPAN>uname<BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;kostl<BR />&nbsp;&nbsp;<SPAN class="">INTO&nbsp;</SPAN><SPAN class="">TABLE&nbsp;</SPAN>lt_user_cs<BR />&nbsp;&nbsp;<SPAN class="">FROM&nbsp;</SPAN>z_cs_auth<BR />&nbsp;&nbsp;<SPAN class="">WHERE&nbsp;</SPAN>uname&nbsp;<SPAN class="">=&nbsp;</SPAN>lv_user&nbsp;<SPAN class="">AND&nbsp;</SPAN>kostl&nbsp;<SPAN class="">=&nbsp;</SPAN>lv_cs<SPAN class="">.</SPAN><BR /><SPAN class="">IF&nbsp;</SPAN>lt_user_cs&nbsp;<SPAN class="">IS&nbsp;</SPAN><SPAN class="">INITIAL</SPAN><SPAN class="">.</SPAN><BR />&nbsp;&nbsp;<SPAN class="">"&nbsp;No&nbsp;entries&nbsp;found&nbsp;for&nbsp;the&nbsp;user&nbsp;in&nbsp;the&nbsp;custom&nbsp;table</SPAN><BR />&nbsp;&nbsp;<SPAN class="">MESSAGE&nbsp;</SPAN>e001<SPAN class="">(</SPAN>zuser_auth<SPAN class="">)</SPAN><SPAN class="">.</SPAN><BR />&nbsp;&nbsp;<SPAN class="">EXIT</SPAN><SPAN class="">.</SPAN><BR /><SPAN class="">ENDIF</SPAN><SPAN class="">.</SPAN><BR /><BR /><SPAN class="">CALL&nbsp;</SPAN><SPAN class="">FUNCTION&nbsp;</SPAN><SPAN class="">'AUTHORITY_CHECK'</SPAN><BR />&nbsp;&nbsp;<SPAN class="">EXPORTING</SPAN><BR /><SPAN class="">*&nbsp;&nbsp;&nbsp;NEW_BUFFERING&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;3</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;user&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>sy<SPAN class="">-</SPAN>uname<BR />&nbsp;&nbsp;&nbsp;&nbsp;object&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN><SPAN class="">'z_cs_auth'</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;field1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN><SPAN class="">'kostl'</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;value1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>ls_user_cs<SPAN class="">-</SPAN>kostl<BR />&nbsp;&nbsp;<SPAN class="">EXCEPTIONS</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;user_dont_exist&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN><SPAN class="">1</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;user_is_authorized&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN><SPAN class="">2</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;user_not_authorized&nbsp;<SPAN class="">=&nbsp;</SPAN><SPAN class="">3</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;user_is_locked&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN><SPAN class="">4</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">OTHERS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN class="">=&nbsp;</SPAN><SPAN class="">5</SPAN><SPAN class="">.</SPAN><BR /><SPAN class="">IF&nbsp;</SPAN>sy<SPAN class="">-</SPAN>subrc&nbsp;&lt;&gt;&nbsp;<SPAN class="">0</SPAN><SPAN class="">.</SPAN><BR /><SPAN class="">*&nbsp;Implement&nbsp;suitable&nbsp;error&nbsp;handling&nbsp;here</SPAN><BR />&nbsp;&nbsp;<SPAN class="">MESSAGE&nbsp;</SPAN>e002<SPAN class="">(</SPAN>zuser_auth<SPAN class="">)</SPAN><SPAN class="">.</SPAN><BR />&nbsp;&nbsp;<SPAN class="">EXIT</SPAN><SPAN class="">.</SPAN><BR /><SPAN class="">ENDIF</SPAN><SPAN class="">.</SPAN></SPAN></P> 2024-07-24T07:56:39.935000+02:00 https://community.sap.com/t5/sap-learning-q-a/practicing-clean-core-extensibility-for-sap-s-4hana-cloud/qaq-p/13770086 Practicing Clean Core Extensibility For SAP S/4HANA Cloud 2024-07-24T10:47:31.458000+02:00 Krisztina1 https://community.sap.com/t5/user/viewprofilepage/user-id/1479130 <P>Hi,</P><P>I am currently unable to access the provided exercises for "Practicing Clean Core Extensibility for SAP S4/HANA Cloud".</P><P>Each time I try to open the exercises, I encounter an internal error. (Internal error message is attached below).</P><P>For example, the following exercises (among others) could not be loaded:</P><UL><LI>Collect Usage Data using the ABAP Call Monitor</LI><LI>Create a UX using SAP Build Apps</LI><LI>Specify a Migration Scope using the Custom Code Migration App</LI><LI>Explore ABAP RESTful Application Programming Model Objects</LI><LI>Utilize the SAP Business Accelerator Hub</LI><LI>......</LI></UL><P>I would appreciate it if you could investigate the issue. Please let me know if there are any updates or if there is an estimated time for resolving this problem.</P><P>Thank you in advance!&nbsp;</P><P>&nbsp;</P> 2024-07-24T10:47:31.458000+02:00 https://community.sap.com/t5/technology-q-a/runtime-exception-itab-duplicate-key-behaves-differently-for-corresponding/qaq-p/13770431 Runtime Exception ITAB_DUPLICATE_KEY behaves differently for CORRESPONDING and FOR loop 2024-07-24T15:28:16.703000+02:00 tamitdassharma https://community.sap.com/t5/user/viewprofilepage/user-id/153763 <P>Hi Experts,</P><P>I think this is a shortcoming from SAPs side, the runtime exception ITAB_DUPLICATE_KEY behaves differently in case of CORRESPONDING component operator and FOR loop. In case of the former, the runtime exception cannot be caught. However, in case of the later there is an exception class CX_SY_ITAB_DUPLICATE_KEY which can be caught and handled.&nbsp;</P><P>Scenario: Moving data from an internal table of type standard to internal table of type hashed.</P><P>Consider the following code.</P><P>&nbsp;</P><pre class="lia-code-sample language-abap"><code>TYPES: BEGIN OF _structure, id TYPE i, name TYPE string, END OF _structure, _standard_table_type TYPE STANDARD TABLE OF _structure WITH EMPTY KEY, _hashed_table_type TYPE HASHED TABLE OF _structure WITH UNIQUE KEY id. DATA(itab1) = VALUE _standard_table_type( ( id = 1 name = |Tamit| ) ( id = 1 name = |Tamit| ) ( id = 2 name = |tamit| ) ( id = 3 name = |Tamit New| ) ).</code></pre><P>&nbsp;</P><P>Now if we create a hashed internal table from the above mentioned standard table using for the exception can be caught as displayed below.</P><P>&nbsp;</P><pre class="lia-code-sample language-abap"><code>TRY. DATA(itab2) = VALUE _hashed_table_type( FOR &lt;itab&gt; IN itab1 ( &lt;itab&gt; ) ). CATCH cx_sy_itab_duplicate_key INTO DATA(exception1). out-&gt;write( |Exception raised via For Loop| ). out-&gt;write( exception1-&gt;get_text( ) ). out-&gt;write( exception1-&gt;get_longtext( ) ). ENDTRY.</code></pre><P>&nbsp;</P><P>Also, we can create the same hashed table using corresponding - component operator as shown below. But in this case the exception cannot be caught.</P><P>&nbsp;</P><pre class="lia-code-sample language-abap"><code>DATA(itab3) = CORRESPONDING _hashed_table_type( itab1 ).</code></pre><P>&nbsp;</P><P>&nbsp;The question to the community is that shouldn't in both the case the exception be allowed to be caught as the runtime error is same in both the cases.</P><P><a href="https://community.sap.com/t5/c-khhcw49343/SAP+NetWeaver+Application+Server+for+ABAP/pd-p/01200314690800000234" class="lia-product-mention" data-product="732-1">SAP NetWeaver Application Server for ABAP</a>&nbsp;<a href="https://community.sap.com/t5/c-khhcw49343/SAP+S%25252F4HANA+Cloud+ABAP+Environment/pd-p/60907aa9-99e9-4d5d-9103-8b970e9bc0a4" class="lia-product-mention" data-product="39-1">SAP S/4HANA Cloud ABAP Environment</a>&nbsp;<a href="https://community.sap.com/t5/c-khhcw49343/ABAP+Extensibility/pd-p/338571334339306322581424656448659" class="lia-product-mention" data-product="315-1">ABAP Extensibility</a>&nbsp;</P> 2024-07-24T15:28:16.703000+02:00 https://community.sap.com/t5/technology-q-a/po-related-variable-in-flexible-workflow-body-and-subject/qaq-p/13770917 Po Related Variable in Flexible Workflow Body and Subject 2024-07-24T23:10:32.525000+02:00 viva_kd https://community.sap.com/t5/user/viewprofilepage/user-id/604248 <P>Dear Experts,</P><P>How to Show&nbsp;Po Related Variables ie. INCO TERMS, PURCH ORG, ETC.... in Flexible Workflow Body and Subject ?</P> 2024-07-24T23:10:32.525000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/display-slg1-logs-with-hierarchy-application-log/qaq-p/13771209 Display SLG1 Logs with Hierarchy (Application Log) 2024-07-25T08:42:16.780000+02:00 casualCoder https://community.sap.com/t5/user/viewprofilepage/user-id/37870 <P>Hello,</P><P>I am currently trying to display logs with hierarchy. I am using the FuBa 'APPL_LOG_DISPLAY' with the profile for DETLEVEL from the FuBa 'BAL_DSP_PROFILE_DETLEVEL_GET'</P><P>I want to display a list of several logs, but unfortunately the display now breaks down the logs strictly according to the hierarchy, so I can't see where one log ends and the next begins:</P><DIV class="">&nbsp;</DIV><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="casualCoder_1-1721889347393.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/141357iE557117CF2E4985D/image-size/large?v=v2&amp;px=999" role="button" title="casualCoder_1-1721889347393.png" alt="casualCoder_1-1721889347393.png" /></span></P><P>Call as follows:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="casualCoder_2-1721889371516.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/141358iB6202B5348180642/image-size/large?v=v2&amp;px=999" role="button" title="casualCoder_2-1721889371516.png" alt="casualCoder_2-1721889371516.png" /></span></P><P>&nbsp;</P> 2024-07-25T08:42:16.780000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/trying-to-assign-saplfaci-bkpf-to-a-field-symbol/qaq-p/13772024 Trying to assign (SAPLFACI)BKPF to a field-symbol 2024-07-25T15:28:36.405000+02:00 walkerist https://community.sap.com/t5/user/viewprofilepage/user-id/798835 <P>Hi, I have a custom program that has 2 IF ELSE conditions.</P><P>IF IDOC DOCUMENT IS POSTED.</P><P>ASSIGN ('(SAPLFACI)BKPF') TO FIELD-SYMBOL(&lt;FS_BKPF&gt;). &lt;---This is the existing code and it works just fine.</P><P>ELSEIF IDOC DOCUMENT IS PARKED.</P><P>ASSIGN ('(SAPLFACI)BKPF') TO &lt;FS_BKPF&gt;. &lt;---Tried to add this but it does not work. I'm not sure why. Is it because the IDOC is parked? But they both have accounting documents.</P><P>ENDIF.</P><P>&nbsp;</P> 2024-07-25T15:28:36.405000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/how-do-i-modify-the-planning-date-on-fb01/qaq-p/13772920 How do I modify the Planning Date on FB01? 2024-07-26T11:14:22.766000+02:00 walkerist https://community.sap.com/t5/user/viewprofilepage/user-id/798835 <P>Hi, I'm trying to modify the BSEG-FDTAG or the Planning Date on FB01.</P><P>When the user sets the payment terms, the days/percent field will be populated. &lt;--- There is an existing logic for this.</P><P>I'm trying to do is Sum the Days in the Days/Percent field and Baseline Date.</P><P>Example.</P><P>Payment terms is 123 and the Days/Percent is 10 days/ 10%.</P><P>Baseline Date is July 31, 2024.</P><P>Planning date should be about August 10, 2024.</P><P>I have a custom program named ZPROGSTEPS that calls a step from GBB1. However, when the step was called, the value of BSEG was empty. Hence, no values were added but when I tried to save the document, the date of the Planning Date was equal to the Baseline Date.</P><P>I've tried to set the BSEG-FDTAG = '20250101' in my custom program but unfortunately, when I saved the document, the planning date was still equal to the baseline date.</P><P>What is the possible solution here? Should I create a step in GBB1 and call that on my custom program?</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P> 2024-07-26T11:14:22.766000+02:00 https://community.sap.com/t5/technology-q-a/select-where-condition/qaq-p/13773126 select where condition 2024-07-26T13:28:28.597000+02:00 Madhusudhan_MV https://community.sap.com/t5/user/viewprofilepage/user-id/357345 <P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><pre class="lia-code-sample language-abap"><code>SELECT * FROM /scwm/huhdr INTO TABLE (lt_tab) WHERE lgnum = _lgnum. LOOP AT lt_tab INTO DATA(ls_tab). IF ls_tab-hu_guid_ext &lt;&gt; ls_tab-guid_hu_top. WRITE: ls_tab-huident. ENDIF. ENDLOOP.</code></pre><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>Hi friends,</P><P>Can I add IF ls_tab-hu_guid_ext &lt;&gt; ls_tab-guid_hu_top ( which is in the loop ) in select where condition ?</P><P>Thanks,</P><P>Madhu M V</P> 2024-07-26T13:28:28.597000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/pack-existing-hu-into-another-existing-hu-both-assigned-to-outbound/qaq-p/13773149 Pack existing HU into another existing HU both assigned to Outbound Delivery 2024-07-26T13:47:52.843000+02:00 Daderiga https://community.sap.com/t5/user/viewprofilepage/user-id/1468327 <P>Hi,</P><P>I have this requirement to pack an existing HU into another HU through abap code.</P><P>My scenario:</P><P>I have 2 HUs, one of them has a material assigned and the other one is just an empty HU.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daderiga_0-1721994004287.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/142254i3264FB184D50D609/image-size/medium?v=v2&amp;px=400" role="button" title="Daderiga_0-1721994004287.png" alt="Daderiga_0-1721994004287.png" /></span></P><P>I need to pack the first one and it's content into the second one.</P><P>Im trying to achieve this this way:</P><P>1- In a Z program I create the new empty HU.</P><P>2- Assign it to the Outbout Delivery</P><P>3- Once assigned, I use the BAPI_HU_PACK to pack the first one (with the material) into the second one (empty) so I can have 3 levels -&gt; Top Hu (ump), Second HU (ump working as a box) and it's material.</P><P>When I execute the BAPI_HU_PACK I get this error <STRONG>HUFUNCTIONS 261 'Processing of HUs for selected objects not possible'</STRONG></P><P>I think it's because once the HU is assigned to the Outbound Delivery you cant 'repack' it into another HU but if you do so manually, there's no problem.</P><P>Any idea?</P><P>&nbsp;</P><P>Thanks in advance.</P> 2024-07-26T13:47:52.843000+02:00 https://community.sap.com/t5/technology-q-a/domain-using-unit-data-type/qaq-p/13773853 DOMAIN using UNIT data type 2024-07-26T21:26:33.816000+02:00 Manoj_B_Gaikwad https://community.sap.com/t5/user/viewprofilepage/user-id/150487 <P>I created a DOMAIN using UNIT data tye. I want to give value range and want to create help while creating entries and at selection screen help. How to do it?</P><P>&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manoj_B_Gaikwad_0-1722022046742.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/142669iEB393E33B685154E/image-size/medium?v=v2&amp;px=400" role="button" title="Manoj_B_Gaikwad_0-1722022046742.png" alt="Manoj_B_Gaikwad_0-1722022046742.png" /></span></P><P>&nbsp;</P> 2024-07-26T21:26:33.816000+02:00