https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/ABAP-Development-qa.xml SAP Community - ABAP Development 2024-05-09T20:00:05.455532+00:00 python-feedgen ABAP Development Q&A in SAP Community https://community.sap.com/t5/technology-q-a/decrypt-message-in-aes-cbc-pkcs5padding-in-abap/qaq-p/13692902 Decrypt message in AES/CBC/PKCS5PADDING in ABAP 2024-05-06T17:40:50.956000+02:00 Mbye_Njie https://community.sap.com/t5/user/viewprofilepage/user-id/5348 <P>Hi all,</P><P>can someone explain me how to decrypt a message in&nbsp;<SPAN>AES/CBC/PKCS5PADDING. I am using something this code:</SPAN></P><P>&nbsp;</P><P>&nbsp;</P><pre class="lia-code-sample language-abap"><code> cl_sec_sxml_writer=&gt;decrypt( EXPORTING ciphertext = lv_output key = lv_key algorithm = cl_sec_sxml_writer=&gt;co_aes192_algorithm_pem</code></pre><P>&nbsp;</P><P>&nbsp;</P><P>Where lv_output and lv_key are in XSTRING format. lv_output is the message and lv_key is the password.</P><P><SPAN>Thanks &amp; Regards.</SPAN></P><P>Mbye</P> 2024-05-06T17:40:50.956000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/va01-userexit-before-entering-material-details/qaq-p/13693189 VA01 Userexit before Entering Material details 2024-05-07T00:29:22.550000+02:00 blkanth7 https://community.sap.com/t5/user/viewprofilepage/user-id/824856 <P>Hi,</P><P>Need help for userexit in VA01 T-code</P><P>Steps</P><P>1. I need to trigger a Message for a field plant to be entered before going to enter the Material details</P><P>2. User need not to press 'enter' button.</P><P>Kindly help me.</P> 2024-05-07T00:29:22.550000+02:00 https://community.sap.com/t5/technology-q-a/adding-variables-in-adobe-forms-to-display-at-out-put/qaq-p/13693420 Adding variables in adobe forms to display at out put 2024-05-07T07:09:22.925000+02:00 Mahesh1 https://community.sap.com/t5/user/viewprofilepage/user-id/1384270 <P>Hi all,</P><P>I need to display the material code below the material description on same row of output table, please suggest me where this material code variable need to be added in Adobe form.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mahesh1_0-1715058155661.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/106639i7582A0E12BDDDC1A/image-size/medium?v=v2&amp;px=400" role="button" title="Mahesh1_0-1715058155661.png" alt="Mahesh1_0-1715058155661.png" /></span></P><P>30016 is material code(GS_ITEMS-MATNR) which has to come below its description on same row at&nbsp; the output of Adobe Form</P><P>&nbsp;</P> 2024-05-07T07:09:22.925000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/api-call-to-connect-dms-with-sharepoint/qaq-p/13693914 API call to connect DMS with SharePoint 2024-05-07T14:30:08.544000+02:00 pawan_rai https://community.sap.com/t5/user/viewprofilepage/user-id/761377 <P>Hi Experts,</P><P>I have a requirement in S4 HANA where I need to&nbsp;</P><P>1: Get a new entry to GOS of certain transactions which have attachment options available .&nbsp;</P><P>2. Once that is done , when user clicks on that option it should connect with Microsoft SharePoint to attach the particular document</P><P>Can someone please guide in this regard , how this can be achieved</P><P>I am bit inexperienced in Web-based Coding, any help would be appreciated</P><P>#SAP #S4/HANA&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P> 2024-05-07T14:30:08.544000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/line-loop-on-grid-excluding-first-four-lines/qaq-p/13694650 Line loop on Grid excluding first four lines 2024-05-08T07:37:08.741000+02:00 lsauser https://community.sap.com/t5/user/viewprofilepage/user-id/681714 <P>Hi all,</P><P>&nbsp;</P><P>I have come up with an interesting dilemma and for the life of me I cannot figure out a clear explanation as to why it is happening.</P><P>I am running a loop over the lines on a grid and checking whether the PickedQty &gt; 0, if it is then the line is included in a stock transfer document. This is working perfectly fine if include any lines from the fifth one onwards, however, if I include any one of the first four lines OR if I include any of the first four lines in addition to the fifth line onwards then I still get a success message but no transfer document is made.</P><P>When I try any of the first four rows I get the processing line x / x status message so I know the condition is correct for that part of the code to trigger.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lsauser_0-1715146264340.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/107235i07775B98D6C353B1/image-size/medium?v=v2&amp;px=400" role="button" title="lsauser_0-1715146264340.png" alt="lsauser_0-1715146264340.png" /></span></P><pre class="lia-code-sample language-abap"><code>try { // Define a flag to track if any rows with PickedQty &gt; 0 are found bool rowsFound = false; Grid grid = (Grid)form.Items.Item("BOY_1").Specific; int rowsCount = grid.Rows.Count; // Iterate over the grid rows to check for PickedQty &gt; 0 for (int i = 0; i &lt; rowsCount; i++) { int qty = Convert.ToInt32(grid.DataTable.GetValue("PickedQty", i)); if (qty &gt; 0) { rowsFound = true; break; // Exit the loop as soon as a row with PickedQty &gt; 0 is found } } // If no rows with PickedQty &gt; 0 are found, alert the user and exit if (!rowsFound) { application.StatusBar.SetText("No rows with Picked Quantity greater than 0 are selected.", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error); return; // Exit the method } // Proceed with creating the stock transfer document SAPbobsCOM.StockTransfer transfer = (SAPbobsCOM.StockTransfer)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oStockTransfer); transfer.DocDate = DateTime.Now; transfer.FromWarehouse = "2WM"; transfer.ToWarehouse = "2WM"; // Iterate over all rows in the grid and process those with PickedQty &gt; 0 for (int i = 0; i &lt; rowsCount; i++) { string ItemCode = grid.DataTable.GetValue("ItemCode", i).ToString(); string Warehouse = grid.DataTable.GetValue("WhsCode", i).ToString(); int qty = Convert.ToInt32(grid.DataTable.GetValue("PickedQty", i)); // Process only rows with PickedQty &gt; 0 if (qty &gt; 0) { application.StatusBar.SetText("Processing line " + (i + 1) + "/" + rowsCount, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success); transfer.Lines.ItemCode = ItemCode; transfer.Lines.FromWarehouseCode = "2WM"; transfer.Lines.WarehouseCode = Warehouse; transfer.Lines.Quantity = qty; transfer.Lines.Add(); } } // Check if any lines were added to the transfer document if (transfer.Lines.Count &gt; 0) { transfer.Add(); application.StatusBar.SetText("All items successfully transferred", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success); } else { application.StatusBar.SetText("No items with Picked Quantity greater than 0 to transfer", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error); } // Release the COM object System.Runtime.InteropServices.Marshal.ReleaseComObject(transfer); } catch (Exception ex) { // Handle the exception gracefully application.StatusBar.SetText("Error: " + ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error); }</code></pre><P>Hopefully someone else can see some reason I am missing as to why it is doing this, i'm stumped. Happy to provide further context if required.</P><P>Kind Regards,</P><P>Nick</P><P>&nbsp;</P> 2024-05-08T07:37:08.741000+02:00 https://community.sap.com/t5/technology-q-a/workflow-original-wf-approver-and-substitute-approver/qaq-p/13694678 Workflow original WF approver and substitute approver 2024-05-08T08:11:24.872000+02:00 Tisha https://community.sap.com/t5/user/viewprofilepage/user-id/1400104 <P><SPAN><SPAN class="">When a delegate or substitute approves a work item I want to know the actual approver as well for the step ... Do you know any FM or Table that stores that information</SPAN></SPAN></P> 2024-05-08T08:11:24.872000+02:00 https://community.sap.com/t5/technology-q-a/user-exit-for-me22n-to-make-field-netpr-not-to-be-editable/qaq-p/13694713 user exit for me22n to make field NETPR not to be editable 2024-05-08T08:48:13.382000+02:00 Mahesh1 https://community.sap.com/t5/user/viewprofilepage/user-id/1384270 <P>Hi all,</P><P><SPAN>Once advance payment is made against PO, again system should not allow for amendments.</SPAN></P><P>Here I want to change the field&nbsp;NETPR to <STRONG>not to be editable</STRONG> of transaction me22n if&nbsp;<SPAN>EKBE-VGABE = 4&nbsp;( transaction event type = down payment)</SPAN></P><P>how this can be done? Do I need to use any User exit? please suggest.</P> 2024-05-08T08:48:13.382000+02:00 https://community.sap.com/t5/technology-q-a/modify-limits-tab-of-pr-item-using-me-process-req-cust/qaq-p/13694815 Modify 'Limits' tab of PR Item using ME_PROCESS_REQ_CUST 2024-05-08T09:38:13.329000+02:00 arun_k7 https://community.sap.com/t5/user/viewprofilepage/user-id/769743 <P>Hi all,</P><P>&nbsp;I have a requirement to modify the values of 'Overall limit' and 'Expected value' under 'Limits' tab of PR item using BAdI&nbsp;ME_PROCESS_REQ_CUST. I can get data from table ESUH as mentioned in&nbsp;<A href="https://community.sap.com/t5/application-development-blog-posts/badi-me-process-req-cust-services-limits-data/ba-p/13277699" target="_self">https://community.sap.com/t5/application-development-blog-posts/badi-me-process-req-cust-services-limits-data/ba-p/13277699.</A></P><P>But I cannot see any method to set ESUH table. Any idea to achieve this friends?</P><P>Regards,</P><P>Arun</P> 2024-05-08T09:38:13.329000+02:00 https://community.sap.com/t5/technology-q-a/what-is-the-use-of-mapped-in-sap-restful-abap-programming/qaq-p/13694846 What is the use of Mapped in SAP RESTFul ABAP Programming 2024-05-08T10:03:43.277000+02:00 vkarmakar https://community.sap.com/t5/user/viewprofilepage/user-id/801355 <P>I am new to SAP RESTful ABAP Programming and learning it through ABAP-On-Cloud 2020 in Docker.</P><P>I have created few custom Application using basic /dmo/ Tables like Agency, Customer, Carrier, etc</P><P>But I am facing few challenges</P><P>1) When using Unmanaged Scenario without Draft I am able to populated Mapped and Reported in case of Success in Creating or Updating an entries but when I use the same Application with Draft Functionality added to it in Create populating&nbsp;Mapped and Reported&nbsp; do not create any issue , However in Update if I populate Mapped the program dumps.</P><P>2) Sometimes Draft in Unmanaged do not update the Draft Table properly due to some reasons and I cannot figure out how to debug it.</P><P>So it is my humble request from community if anybody can explain this to me so that most beginners can try their hands on and learn the new things from SAP</P><P>Thank You&nbsp;</P> 2024-05-08T10:03:43.277000+02:00 https://community.sap.com/t5/technology-q-a/how-to-store-api-tokens-in-sap-abap/qaq-p/13694908 How to Store API Tokens in SAP ABAP? 2024-05-08T10:49:46.822000+02:00 javier_alonso https://community.sap.com/t5/user/viewprofilepage/user-id/831801 <P>I am consuming a REST API directly in SAP. The API uses oAuth athorization, however, I cannot use the oAuth 2.0 Client AS ABAP because the API only supports password Grant Type, which is not supported by the oAuth Client as far as I know.</P><P>Due to that fact, I am implementing the API calls via HTTP Destinations (SM59) to securely store the Client ID and Client Secret. Now I would like to handle the token expiration time to avoid generating a new token for each API call.<BR />I don't really know how to store the Bearer Token in a safely way. I was thinking about a Database Table with the token (encoded in some way) and the VALID FROM - VALID TO timestamps.</P><P>I would like to know if there is an standard or better approach.</P> 2024-05-08T10:49:46.822000+02:00 https://community.sap.com/t5/human-capital-management-q-a/read-q-structure-in-infotype-0014-and-0015/qaq-p/13695020 Read Q structure in infotype 0014 and 0015 2024-05-08T12:29:00.138000+02:00 spartans007 https://community.sap.com/t5/user/viewprofilepage/user-id/823531 <P>Hello,</P><P>I have a requiremet to add validation based on amount field in infotype 0014 and 0015.</P><P>If some greater amount XYZ is entered it should not save and trigger error.</P><P>Can someone please tell me how to i read the Q structure Field : Q0015-BETRG and&nbsp;Q0014-BETRG.</P><P>And Which User Exit or BADI needs to be implemented.</P><P>&nbsp;</P><P>Thanks&nbsp;</P> 2024-05-08T12:29:00.138000+02:00 https://community.sap.com/t5/human-capital-management-q-a/read-q-structure-in-infotype-0014-and-0015/qaq-p/13695022 Read Q structure in infotype 0014 and 0015 2024-05-08T12:30:08.809000+02:00 spartans007 https://community.sap.com/t5/user/viewprofilepage/user-id/823531 <P>Hello,</P><P>I have a requiremet to add validation based on amount field in infotype 0014 and 0015.</P><P>If some greater amount XYZ is entered it should not save and trigger error.</P><P>Can someone please tell me how to i read the Q structure Field : Q0015-BETRG and&nbsp;Q0014-BETRG.</P><P>And Which User Exit or BADI needs to be implemented.</P><P>&nbsp;</P><P>Thanks&nbsp;</P> 2024-05-08T12:30:08.809000+02:00 https://community.sap.com/t5/technology-q-a/inconsistent-currency-information-error-while-posting-gl-account-through/qaq-p/13695193 inconsistent currency information error while posting gl account through bapi_acc_document_post 2024-05-08T14:24:39.901000+02:00 gnanu8055_62 https://community.sap.com/t5/user/viewprofilepage/user-id/751548 <P>in my gt_sum table i have list of profit centers ,and for each profit centers 3 gl accounts of posting key 40 , 40 and 50 .</P><P>here after the loop i am calling the bapi_acc_doc_post&nbsp; , but i am getting the&nbsp; inconsistent currency information error , could you please assist me on the below code</P><P><SPAN><SPAN class="">LOOP&nbsp;AT&nbsp;gt_sum&nbsp;INTO&nbsp;DATA(lw_sum1).<BR />&nbsp;&nbsp;&nbsp;&nbsp;lw_accountgl-itemno_acc&nbsp; =&nbsp;'1'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;lw_accountgl-gl_account&nbsp; =&nbsp;'1040107010'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;lw_accountgl-item_text&nbsp;=&nbsp;w_docheader-header_txt.<BR />&nbsp;&nbsp;&nbsp;&nbsp;lw_accountgl-profit_ctr&nbsp;=&nbsp;lw_sum1-prctr.<BR /><BR />&nbsp;&nbsp;&nbsp; APPEND&nbsp;lw_accountgl&nbsp;TO&nbsp;&nbsp;&nbsp; i_gl_acc&nbsp;.<BR />&nbsp;&nbsp;&nbsp;&nbsp;lw_accountgl-itemno_acc&nbsp; =&nbsp;'2'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;lw_accountgl-gl_account&nbsp; =&nbsp;'1040108010'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;lw_accountgl-item_text&nbsp;=&nbsp;w_docheader-header_txt.<BR />&nbsp;&nbsp;&nbsp;&nbsp;lw_accountgl-profit_ctr&nbsp;=&nbsp;lw_sum1-prctr.<BR />&nbsp;&nbsp;&nbsp; APPEND&nbsp;lw_accountgl&nbsp;TO&nbsp;&nbsp;&nbsp; i_gl_acc&nbsp;.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-itemno_acc&nbsp;=&nbsp;'1'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-curr_type&nbsp; =&nbsp;'00'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-currency&nbsp;&nbsp; =&nbsp;'INR'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-amt_doccur&nbsp;=&nbsp;lw_sum1-freight_lc1.<BR />&nbsp;&nbsp;&nbsp; APPEND&nbsp;w_curr_amt&nbsp;TO&nbsp;i_curr_amt&nbsp;.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-itemno_acc&nbsp;=&nbsp;'1'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-curr_type&nbsp; =&nbsp;'10'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-currency&nbsp;&nbsp; =&nbsp;'INR'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-amt_doccur&nbsp;=&nbsp;lw_sum1-freight_lc1.<BR />&nbsp;&nbsp;&nbsp; APPEND&nbsp;w_curr_amt&nbsp;TO&nbsp;i_curr_amt&nbsp;.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-itemno_acc&nbsp;=&nbsp;'1'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-curr_type&nbsp; =&nbsp;'31'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-currency&nbsp;&nbsp; =&nbsp;'USD'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-amt_doccur&nbsp;=&nbsp;lw_sum1-freight_lc2.<BR />&nbsp;&nbsp;&nbsp; APPEND&nbsp;w_curr_amt&nbsp;TO&nbsp;i_curr_amt&nbsp;.<BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-itemno_acc&nbsp;=&nbsp;'2'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-curr_type&nbsp; =&nbsp;'00'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-currency&nbsp;&nbsp; =&nbsp;'INR'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-amt_doccur&nbsp;=&nbsp;lw_sum1-duty_lc1.<BR />&nbsp;&nbsp;&nbsp; APPEND&nbsp;w_curr_amt&nbsp;TO&nbsp;i_curr_amt&nbsp;.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-itemno_acc&nbsp;=&nbsp;'2'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-curr_type&nbsp; =&nbsp;'10'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-currency&nbsp;&nbsp; =&nbsp;'INR'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-amt_doccur&nbsp;=&nbsp;lw_sum1-duty_lc1.<BR />&nbsp;&nbsp;&nbsp; APPEND&nbsp;w_curr_amt&nbsp;TO&nbsp;i_curr_amt&nbsp;.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-itemno_acc&nbsp;=&nbsp;'2'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-curr_type&nbsp; =&nbsp;'31'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-currency&nbsp;&nbsp; =&nbsp;'USD'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-amt_doccur&nbsp;=&nbsp;lw_sum1-duty_lc2.<BR />&nbsp;&nbsp;&nbsp; APPEND&nbsp;w_curr_amt&nbsp;TO&nbsp;i_curr_amt&nbsp;.<BR />&nbsp;&nbsp;&nbsp;&nbsp;lw_accountgl-itemno_acc&nbsp; =&nbsp;'3'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;lw_accountgl-gl_account&nbsp; =&nbsp;'6030201020'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;lw_accountgl-item_text&nbsp;=&nbsp;w_docheader-header_txt.<BR />&nbsp;&nbsp;&nbsp;&nbsp;lw_accountgl-profit_ctr&nbsp;=&nbsp;lw_sum1-prctr.<BR />&nbsp;&nbsp;&nbsp; APPEND&nbsp;lw_accountgl&nbsp;TO&nbsp;&nbsp;&nbsp; i_gl_acc&nbsp;.<BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-itemno_acc&nbsp;=&nbsp;'3'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-curr_type&nbsp; =&nbsp;'00'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-currency&nbsp;&nbsp; =&nbsp;'INR'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-amt_doccur&nbsp;=&nbsp;-&nbsp;(&nbsp;lw_sum1-freight_lc1&nbsp;+&nbsp;lw_sum1-duty_lc1&nbsp;).<BR />&nbsp;&nbsp;&nbsp; APPEND&nbsp;w_curr_amt&nbsp;TO&nbsp;i_curr_amt&nbsp;.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-itemno_acc&nbsp;=&nbsp;'3'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-curr_type&nbsp; =&nbsp;'10'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-currency&nbsp;&nbsp; =&nbsp;'INR'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-amt_doccur&nbsp;=&nbsp;-&nbsp;(&nbsp;lw_sum1-freight_lc1&nbsp;+&nbsp;lw_sum1-duty_lc1&nbsp;)&nbsp;.<BR />&nbsp;&nbsp;&nbsp; APPEND&nbsp;w_curr_amt&nbsp;TO&nbsp;i_curr_amt&nbsp;.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-itemno_acc&nbsp;=&nbsp;'3'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-curr_type&nbsp; =&nbsp;'31'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-currency&nbsp;&nbsp; =&nbsp;'USD'.<BR />&nbsp;&nbsp;&nbsp;&nbsp;w_curr_amt-amt_doccur&nbsp;=&nbsp;-&nbsp;(&nbsp;lw_sum1-freight_lc2&nbsp;+&nbsp;lw_sum1-duty_lc2&nbsp;)&nbsp;.<BR />&nbsp;&nbsp;&nbsp; APPEND&nbsp;w_curr_amt&nbsp;TO&nbsp;i_curr_amt&nbsp;.<BR />&nbsp;&nbsp;&nbsp; clear&nbsp;:&nbsp;w_curr_amt&nbsp;,&nbsp;lw_accountgl&nbsp;.<BR />&nbsp; ENDLOOP.</SPAN></SPAN></P> 2024-05-08T14:24:39.901000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/while-creating-pr-me51n-getting-error-virus-scan-profile-is-not-active/qaq-p/13695828 While creating PR -ME51N getting Error Virus Scan Profile is not active 2024-05-09T04:10:18.845000+02:00 arpita_churi3 https://community.sap.com/t5/user/viewprofilepage/user-id/223787 <P>Hi All,</P><P>There is an error coming while manual creation of PR in ME51N.</P><P>when user enters all the line items details manually .and when user enters Purchase Org and Acct assignment data , and press Enter , Warning is coming "Virus Scan Profile /SOAP_CORE/WS_RECEIVE is not active".</P><P>and it is suppressing error messages coming from&nbsp;ME_PROCESS_REQ_CUST~PROCESS_ITEM. and this is happening only when we enter Purch Org Data.</P><P>Can anyone help on this?</P><P>Thanks,</P><P>Arpita</P> 2024-05-09T04:10:18.845000+02:00 https://community.sap.com/t5/technology-q-a/bp-transaction-collection-contact-person-is-not-getting-created/qaq-p/13695936 BP Transaction : Collection contact person is not getting created 2024-05-09T07:41:59.168000+02:00 OmPrakashJha https://community.sap.com/t5/user/viewprofilepage/user-id/5102 <P>Hi All,</P><P>I am creating contact person in BP transaction through BAPI with the below parameters.</P><P><!-- StartFragment --><SPAN>&nbsp;<SPAN class="">call&nbsp;</SPAN><SPAN class="">function&nbsp;</SPAN><SPAN class="">'BAPI_BUPR_CONTP_CREATE'</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">exporting</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;businesspartner&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>lv_kunnr<BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contactperson&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>rv_partner<BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;defaultrelationship&nbsp;<SPAN class="">=&nbsp;</SPAN><SPAN class="">'&nbsp;'</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">tables</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addressduplicates&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>lt_addressduplicates<BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">return&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN class="">=&nbsp;</SPAN>lt_bapiret2_tab<SPAN class="">.</SPAN></SPAN></P><P>&nbsp;</P><P>It's creating the contact person successfully which I can see under "Has contact person tab"(Please refer the attached screenshot)</P><P>But When I checked "Has collection contact person" I can see there is no entry there as expectation is to create collection contact person details as well.</P><P>I have already tried with the above BAPI with some additional parameters but no success yet.</P><P>I also tried with a new BAPI with the below parameters but even after success message. Collection contact person is not getting created.</P><P><!-- StartFragment --><SPAN><SPAN class="">data&nbsp;</SPAN><SPAN class="">:&nbsp;</SPAN>lt_result&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">type&nbsp;</SPAN><SPAN class="">table&nbsp;</SPAN><SPAN class="">of&nbsp;</SPAN>bapiret2<SPAN class="">.</SPAN><BR />&nbsp;&nbsp;<SPAN class="">call&nbsp;</SPAN><SPAN class="">function&nbsp;</SPAN><SPAN class="">'BUPR_RELATIONSHIP_CREATE'</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">exporting</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iv_partner_1&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>lv_kunnr<BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iv_partner_2&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>rv_partner<BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iv_relationship&nbsp;<SPAN class="">=&nbsp;</SPAN><SPAN class="">'UDM001'</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iv_x_save&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>space<BR />&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">tables</SPAN><BR />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;et_return&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class="">=&nbsp;</SPAN>lt_result<SPAN class="">.</SPAN><BR /><SPAN class="">*&nbsp;&nbsp;endif..</SPAN></SPAN></P><P>Please let me know if you have come through this scenario or have any information about this topic.</P><P>&nbsp;</P><P>Regards,</P><P>Om</P><P>&nbsp;</P> 2024-05-09T07:41:59.168000+02:00 https://community.sap.com/t5/technology-q-a/qa32-enhancement-for-field-validation/qaq-p/13695958 QA32 enhancement for field Validation. 2024-05-09T08:12:13.679000+02:00 Devin2230 https://community.sap.com/t5/user/viewprofilepage/user-id/1432671 <P>I have a requirement where I have to put a field Validation on one of the inputs in QA32 transaction. Is there any enhancement or exit which can be used to achieve this? If yes where can we find it?</P> 2024-05-09T08:12:13.679000+02:00 https://community.sap.com/t5/technology-q-a/i-want-it-to-remain-on-the-line-you-are-working-on-after-the-alv-refresh/qaq-p/13696109 I want it to remain on the line you are working on after the Alv refresh process. 2024-05-09T10:43:09.452000+02:00 TurgutG https://community.sap.com/t5/user/viewprofilepage/user-id/1410256 <P>When we mark a checkbox on a line in Abap Alv, I want to stay on the line you are working on after the Alv refresh process.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TurgutG_0-1715243977208.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/107891i34F3E272EEAA73BE/image-size/medium?v=v2&amp;px=400" role="button" title="TurgutG_0-1715243977208.png" alt="TurgutG_0-1715243977208.png" /></span></P><P>I don't want it to show the top line after alv refresh.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TurgutG_1-1715244018491.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/107892iF643751757FF4A14/image-size/medium?v=v2&amp;px=400" role="button" title="TurgutG_1-1715244018491.png" alt="TurgutG_1-1715244018491.png" /></span></P><P>&nbsp;</P> 2024-05-09T10:43:09.452000+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/how-to-achieve-multiple-default-values-in-fiori-list-page-by-using-odata/qaq-p/13696448 How to achieve multiple default values in Fiori list page by using @Odata.publish annotation 2024-05-09T16:01:24.651000+02:00 sudhir_vanap https://community.sap.com/t5/user/viewprofilepage/user-id/219867 <P>Hello Experts,</P><P>We have a requirement to show multiple default values (5 entries) of Supplier Account Group (LFA1-KTOKK) in selection parameter of FLP. But getting error as "Binding target not unique: <SPAN>SUPPLIERACCOUNTGROUP [Odata exposure]</SPAN>".&nbsp;</P><P>I have activated the odata service with annotation&nbsp;@Odata.publish:true where all of my other features are working as expected but not able to achieve this. Can't we populate multiple default values with Odata service option ? Please help.&nbsp;</P><P>I have tried the below code for Vendor Account group column in my CDS:</P><DIV><DIV><P><SPAN>@Consumption.filter:</SPAN> <SPAN>{selectionType:</SPAN> <SPAN>#SINGLE,</SPAN> <SPAN>multipleSelections:</SPAN> <SPAN>true,</SPAN> <SPAN>mandatory:</SPAN> <SPAN>true}</SPAN></P><P><SPAN>@Consumption.derivation:{</SPAN> <SPAN>lookupEntity:</SPAN> <SPAN>'I_SUPPLIERACCOUNTGROUP',</SPAN></P><P><SPAN>resultElement:</SPAN> <SPAN>'SupplierAccountGroup',</SPAN></P><P><SPAN>binding:</SPAN> <SPAN>[{targetElement:'SupplierAccountGroup',</SPAN> <SPAN>type:</SPAN> <SPAN>#CONSTANT,</SPAN> <SPAN>value:</SPAN> <SPAN>'ZSUP'</SPAN> <SPAN>},</SPAN></P><P><SPAN>{</SPAN> <SPAN>targetElement:'SupplierAccountGroup',</SPAN> <SPAN>type:</SPAN> <SPAN>#CONSTANT,</SPAN> <SPAN>value:</SPAN> <SPAN>'ZPUR'</SPAN> <SPAN>},</SPAN></P><P><SPAN>{</SPAN> <SPAN>targetElement:'SupplierAccountGroup',</SPAN> <SPAN>type:</SPAN> <SPAN>#CONSTANT,</SPAN> <SPAN>value:</SPAN> <SPAN>'ZFRT'</SPAN> <SPAN>},</SPAN></P><P><SPAN>{</SPAN> <SPAN>targetElement:'SupplierAccountGroup',</SPAN> <SPAN>type:</SPAN> <SPAN>#CONSTANT,</SPAN> <SPAN>value:</SPAN> <SPAN>'ZEXP'</SPAN> <SPAN>},</SPAN></P><P><SPAN>{</SPAN> <SPAN>targetElement:'SupplierAccountGroup',</SPAN> <SPAN>type:</SPAN> <SPAN>#CONSTANT,</SPAN> <SPAN>value:</SPAN> <SPAN>'ZLOC'</SPAN> <SPAN>}]}</SPAN></P><P><SPAN>@ObjectModel.foreignKey.association:</SPAN> <SPAN>'_ZISUP'</SPAN></P><P>&nbsp;</P><P>&nbsp;</P><P><SPAN><a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1445379">@ui</a>.selectionField:</SPAN> <SPAN>[{</SPAN> <SPAN>position:</SPAN> <SPAN>10</SPAN> <SPAN>}]</SPAN></P><P><SPAN>@Consumption.valueHelpDefinition:</SPAN> <SPAN>[{</SPAN> <SPAN>entity:{name:</SPAN> <SPAN>'Zcst_Dat_Accgrptext_Vh',element:</SPAN> <SPAN>'SupplierAccountGroup'</SPAN> <SPAN>}</SPAN> <SPAN>}]</SPAN></P><P><SPAN>ktokk</SPAN> <SPAN>as</SPAN> <SPAN>Vendoraccountgroup</SPAN><SPAN>,<BR /><BR /><BR /><a href="https://community.sap.com/t5/c-khhcw49343/SAP+S%25252F4HANA+Embedded+Analytics/pd-p/8492b555-b489-4972-8e37-83f2f27ae399" class="lia-product-mention" data-product="1067-1">SAP S/4HANA Embedded Analytics</a>&nbsp;<a href="https://community.sap.com/t5/c-khhcw49343/OData/pd-p/551580658536717501828021060147962" class="lia-product-mention" data-product="323-1">OData</a>&nbsp;</SPAN></P></DIV></DIV> 2024-05-09T16:01:24.651000+02:00 https://community.sap.com/t5/technology-q-a/uploading-business-partners-as-vendors-within-the-sap-system/qaq-p/13696460 Uploading Business Partners as vendors within the SAP system. 2024-05-09T16:05:11.109000+02:00 Mohsin0076 https://community.sap.com/t5/user/viewprofilepage/user-id/1402514 <P>Hello Experts,<BR />Which SAP <STRONG>function module</STRONG> or <STRONG>BAPI</STRONG> would be appropriate for uploading <STRONG>Business Partners</STRONG> as <STRONG>vendors</STRONG>?</P> 2024-05-09T16:05:11.109000+02:00 https://community.sap.com/t5/questions-about-sap-websites/can-t-we-multiply-decimal-numbers-in-sap-abap/qaq-p/13696728 Can't we multiply decimal numbers in SAP ABAP? 2024-05-09T21:31:09.161000+02:00 yalcin_mete https://community.sap.com/t5/user/viewprofilepage/user-id/871979 <P>Hi Masters,<BR />Programming languages ​​are primarily expected to perform mathematical operations correctly.<BR />I tried a lot of data types, but I couldn't multiply two decimal numbers into the abap program properly.</P><P>Can you help me ?</P><P>&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yalcin_mete_0-1715283033553.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/108197iF343A55022FDDFAD/image-size/medium/is-moderation-mode/true?v=v2&amp;px=400" role="button" title="yalcin_mete_0-1715283033553.png" alt="yalcin_mete_0-1715283033553.png" /></span></P><P>thanks</P><P>&nbsp;</P><P>&nbsp;</P> 2024-05-09T21:31:09.161000+02:00