Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all 8768 articles
Browse latest View live

Copy customer fields of a PR to the PO

$
0
0

Hi guys,

 

I just have added a customer field to the purchase requisition document with the user exit MEREQ001, just as the documentation says.

The field is being used, editability is set (editable in ME51N and ME52N, non-editable in ME53N), the document can be saved - so to say everything is working just fine!

 

But now it comes: the customer field is not getting copied to the purchase order, if you are using the purchase requirement as template (for example with drag-and-drop in transaction ME21N). I thought a copy should take place automatically if the field names match in the CI_EBANDB and CI_EKPODB stuctures. Just like material and plant and so on...

 

Practically I would like to do the same as this guy http://scn.sap.com/thread/917114 . His thread was never really answered, though.

 

What is the best practice in this case? I hope you can help me out with this one.

 

Thanks a lot and cheers

Boldi


IW38 Mass user status change

$
0
0

Hello Everyone

 

This is a very common requirement and I read many threads but still I am confused. So my requirement is to give one button in application toolbar in IW38 transaction and when user selects multiple items and click on this new button a pop will appear for USER STATUS then user will check multiple checkbox and then click ok and when a user click on SAVE button then it should save in database for all the selected items.

 

So i have used BADIBADI_EAM_RIAUFK20_FCODE_CUS1  for button in application toolbar - DONE.


Then when user click on it then in the badi i am calling this function module for USER status popup STATUS_SET_USER_STATUS_DIALOG : DONE. Status is appearing properly.


But when I check multiple status and click OK then it will go back to the BADI_EAM_RIAUFK20_FCODE_CUS1 badi. there I tried to find the selected user status which i checked but i am not able to find it. I dont know what I am missing. Do i get this data in another exit or badi.??


And for saving i need to use BAPI : BAPI_ISUSMORDER_USERSTATUSSET. Still I do not know how to use it for multiple checked user status.


Please help.


Thanks

Virendra Singh Somwanshi

ABAP Courses - where to start and how to continue ?

$
0
0

Hi

 

I am a Basis administrator of our ERP SAP landscape and a DBA in my company and would like to have some basic knowledge with ABAP programming so I can support/understand the ABAP programs/reports that are already there and help with writing new ones as needed.

 

I looked at the training sites and there are quite a few courses , starting with BC100..

 

Does anyone has a recommendation what is the best way to go about it ?

Should I start with BC100 ? and what additional courses from the list a recommended ?

 

thanks in advance

Orna

Getting dump LKKBLF32 Line 246

$
0
0

Guys,

 

I am getting the below dump. Can anybody help on this?

 

Category                      ABAP Programming Error

Runtime Errors             OBJECTS_NOT_CHARCONV

ABAP Program             SAPLKKBL

Application Component  BC-SRV-ALV

 

Short text

    The data object cannot be converted into a character-type type.

 

What happened?

    Error in the ABAP Application Program

    The current ABAP program "SAPLKKBL" had to be terminated because it has

    come across a statement that unfortunately cannot be executed.

 

Error analysis

    At the statement

       "WRITE"

    , only data objects are supported at the argument position "<FIELD>" that can

    be converted into a character-type type.

 

 

    In this particular case, the operand "<FIELD>" has the type "h".

 

SAP Release..... 702

SAP Basis Level. 0015

 

Regards,

Shyamal.

BAPI_PO_CREATE1 is not rounding ERP 6.0 EPH7

$
0
0

     We recently upgraded and now when using BAPI_PO_CREATE1 po's are still successfully being created, but rounding is not taking place.  I have the SAP notes and the SCN, but have not found a solution.  We are not setting the no_rounding flag before calling the BAPI.  Is anyone else experiencing this behavior?  Have you found a solution?

 

Thanks,

 

Jill

Re:QNAO_PS_SAVE

$
0
0

Hi All,

 

 

I have been used the Function Module QNAO_PS_SAVE to delete the serial number from the Notification.But some it is throwing exception in certain time .once we reprocess it got deleted successfully  .I am try to trace the situation when it got failed but not able to trace .

Kindly help me solve this issue.

 

 

 

Regards,

Dhandayuthabani.P

Enhancement in F110 APP is it possible ?

$
0
0

Hi everyone,

I know your time are valuable,

with all do respect, i just want to know.

 

Is it possible to implement the concept of New GL Substitution, in F110 (Automatic Payment Program).

Exactly what i want is while entering parameters in APP the system should recognize to the Identification (REGUA - LAUFI) and according to that system identify starting few Char and automatically update the field name Payment Method (LFB1-ZWELS), values , select Exclude Value by default.

 

I just want to know is it possible, if yes can i ask how.

 

 

In Advance Thanks.

ABAP Project does not open

$
0
0

Hello.

 

i have Eclipse Luna (64bit) installed and using JRE 1.8. ADT were installed successfully.

I'm using Win7/64bit and SAPGUI 7.40 PL1 Hotfix 1.

 

I can open the ABAP perspective in Eclipse.

 

But when i try to create a new ABAP Project nothing happens.

 

But on a computer of colleguage a window opens asking for SAP application server.

 

Is there any way to analyze whats going wrong ?

 

11-02-2015 19-02-05.jpg

 

Thanks for your support and help.

Sebastian


Simultaneous order updates in CRM

$
0
0

We are currently having an issue where we get DUPREC short dumps when we get multiple simultaneous updates for sales orders in CRM from our Legacy system through XI. The IDoc updates themselves are no problem, as they are all queued. However, each update to the sales order triggers an update to R/3, which in turn triggers a CSA_ORDER_* queue back into CRM. The issue happens when we have BDoc updates happening at the same time as IDoc updates, and the BDoc updates start to fail on DUPREC insertions, and then the idoc updates don't behave as expected either.

 

I tried blocking the CSA_ORDER queue through SMQR, and when I do that, all of the idoc updates to the order work perfectly. I am pretty certain the issue comes from BDoc's and IDoc's updating the order at the same time.

 

I have tried a lot of different fixes at a code level for this and none of them seem to work. It's a custom interface that doesn't rely on CRMXIF_ORDER_SAVE, it just does a lot of maintenance functions and then uses CRM_ORDER_SAVE at the end. That was probably not the best way to design it, but that ship has sailed and there's no going back.

 

What I've tried that didn't work:

 

1) Manual ENQUEUE and DEQUEUE calls - I enqueue'd when reading the order and dequeue'd at the end of idoc processing.

2) FM CRM_ORDER_CHECK_CHANGE_ALLOWED - I called this, like the UI does, before editing an order. It did not work.

3) I tried checking the QRFC table directly, bypassing buffers, for the existence of an R/3 queue, and waiting until after the entry went away to do any sales order updates.

 

Because my code changes haven't been having an impact on this issue, I am trying to focus instead on queueing these updates appropriately. To that end, I have been wondering if it is possible to place an IDoc into a normal QRFC queue like I would see on SMQ1/SMQ2. Currently, all the idoc queues display on WEINBQUEUE, but those queues don't seem to be the same as the ones on SMQ1/SMQ2, and I'm not clear on what the difference is. My goal here would be to place inbound idoc updates into the CSA_ORDER_* queue from R/3, so that each update is processed in the order that it is processed.

 

Does anybody know if this is possible, or any other solution I can use to properly synchronize simultaneous IDoc and BDoc updates to a sales order?

Call function 'SD_SALES_DOCU_MAINTAIN'

$
0
0

Hi Gurus,

 

I am trying to generate sales document, in behalf of a claim using a "z" report, and i'm using 'SD_SALESDOCUMENT_CREATE' for that matter, now the return table of this FM always generate Error and Warnings mensages wich implies that i can´t generate this documents. The table contain the following:

 

 

 

 

I really don't know what is happening, but i can say that is happening only with one document in especific. At least i debbug this function a hundred times and don´t understand why this this happens.

How to check weight value

$
0
0

Hello Experts,

 

I've a requirement, where I've to read weight value from a file and insert it into a custom table.

 

Weight could be from 0.0 to 999,999.999.

 

I can write some custom logic to handle it. However, I'm wondering, if there is any standard way or FM which does it already?

 

Many thanks in advance.

Need help implementing SAP note 114814, enhancement F050S005

$
0
0


Hi everyone-

     We are using idoc FIDCCP01 to process travel expense reports from an external system.  It is working beautifully except for the fact that there are no controlling documents, profit center documents, or Special purpose ledger documents.  We understand that SAP intentionally removed this functionality but have given us a way to put it back in by setting the I_COMP and I_COMP_CHECK parameters to blank (instead of the default FI.  We have tried this and are having problems, so we are looking for guidance from an experienced FI/ABAP consultant to help us implement this enhancement.

 

Please contact me ASAP.

Thank you.

Heidi

Question on transaction type in MIGO

$
0
0

What is the meaning of the comment/code below (marked in red), written in LMIGOKS1? Because of this hardcoding, even if the transaction/movement type selected is for a Goods Receipt, the screen layout shown is for a Goods Issue.


    CASE s_control-action.
      WHEN 'A01'.
        s_control-vgart = 'WE'.
        IF 'R08'     CS s_control-refdoc. s_control-vgart = 'WF'. ENDIF.
*       (Yet, in case of a goods receipt/issue and transfer posing
*        related to material documents, only material documents with no
*        related docs are allowed -> set vgart to WA in this case)
        IF 'R02'     CS s_control-refdoc. s_control-vgart = 'WA'. ENDIF.
       IF 'R09 R10' CS s_control-refdoc. s_control-vgart = 'WA'. ENDIF.

 

Thanks,

Juwin

OPDF table showing Added Documents as well in results?

$
0
0

Hope Anyone Would Help,

The Problem is that I am not able to drop the added transactions from OPDF table results, due to which the report shows overstated balances

the Stored Procedure is as written below

 

USE [***_Live]

GO

/****** Object:  StoredProcedure [dbo].[Customer_Recovery_Report]    Script Date: 12/10/2014 13:52:33 ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

-- =============================================

-- Author:        <Author,,Name>

-- Create date: <Create Date,,>

-- Description:    <Description,,>

-- =============================================

ALTER PROCEDURE [dbo].[Customer_Recovery_Report]

    -- Add the parameters for the stored procedure here

    @TODATE date,

    @City nvarchar(50),

    @Number1 int

  

AS

BEGIN

 

DECLARE @Dt1 date

DECLARE @Dt2 date

DECLARE @Dt3 date

 

SET @Dt1 = DATEADD(DAY, -@Number1, @TODATE)

SET @Dt2 = DATEADD(DAY, -@Number1, @Dt1)

SET @Dt3 = DATEADD(DAY, -@Number1, @Dt2)

 

    -- SET NOCOUNT ON added to prevent extra result sets from

    -- interfering with SELECT statements.

    SET NOCOUNT ON;

 

    -- Insert statements for procedure here

    SELECT T0.[CardCode], T0.[CardName], T0.[City],

    [dbo].[Customer_Balance](@TODATE,T0.[CardCode]) as [Balance],

SUM(T3.[DocTotal]) AS [D-Payments], T0.[OrdersBal],

[dbo].[Customer_Payments](@Dt1,@TODATE,T0.[CardCode]) as [Payment1],

[dbo].[Customer_Invoices](@Dt1,@TODATE,T0.[CardCode]) as [Sales1],

[dbo].[Customer_Payments](@Dt2,@Dt1,T0.[CardCode]) as [Payment2],

[dbo].[Customer_Invoices](@Dt2,@Dt1,T0.[CardCode]) as [Sales2],

[dbo].[Customer_Payments](@Dt3,@Dt2,T0.[CardCode]) as [Payment3],

[dbo].[Customer_Invoices](@Dt3,@Dt2,T0.[CardCode]) as [Sales3]

 

FROM OCRD T0 LEFT OUTER JOIN OPDF T3 ON T0.CardCode = T3.[CardCode]

WHERE  T0.City = @City and T0.frozenFor = 'N' and T3.DocType <> 'A'

GROUP BY T0.[CardCode], T0.[CardName], T0.[City], [Balance],  T0.[OrdersBal]

 

 

END

Converting a BAPI to XML File

$
0
0

Hi,

 

I have a requirement of converting a BAPI, say BAPI_VENDOR_GETDETAIL, which has 3 structures and one table, to XML and then write it out to a File, I looked at some of the discussions and could not get a clear understanding on how to do it.

 

I would also like some input on how to do the reverse, read the xml file and populate the data it back to the structures of the BAPI.

 

Would you have some recommendations for this.

 

Thank You.

Sumit.


logic to fetch data from LFA1

$
0
0
SELECT banfn werks flief badat          FROM eban          INTO TABLE it_eban          WHERE badat IN s_badat.   IF NOT it_eban IS INITIAL.     SELECT bwkey bukrs FROM t001k            INTO TABLE it_t001k            FOR ALL ENTRIES IN it_eban            WHERE bukrs EQ it_eban-werks.   ENDIF.

I need to write a statement that would take  flief (vendor) from EBAN and bukrs from T001K and pass in LFB1 to check whether the vendor is extended to that company code.


How to add the logic?


Pls assist.


-babu

CA61 data item wise

$
0
0

Hi All,

           I want to display CA61 same data but on material selection. CA61 is displaying data based on routing group which bring all material present in that routing group. User wants a report which displays change documents routing for a particular material. Is there any function module to bring dis data for a particular material. Please help me in this regards.

 

Thank you in advance for you time and efforts.

Web dynpro ABAP is displayed without any style

$
0
0

Dear all,

 

we have the problem in our BI system which has web dynpros in the ABAP stack that they are displayed without any style if it is integrated in the portal via a web dynpro iView. It's activated to use portal style sheet. The application is dysplayed as plain html. Can it be caused by a special browser version or what can be the reason?

 

Thanks!

Accessing SAP back end by passing Remote Terminal Server

$
0
0

Dear - I searched the forum as well web but didn't get any such specific discussion points on my quires so posting it here.

 

I use back end SAP from Remote Terminal Server (MSTSC). Can I access the same from Eclipse ADT. I have installed Eclipse Luna 32 bit on my desktop.So how can I configure Eclipse to access back end SAP without accessing through Remote Terminal Server.

 

Can someone please guide me on this?

 

- Thanks , Somnath

Customize and Configure Personal Profile in Employee Self-Service

$
0
0

Hi,

 

I am trying to make a few fields read only in the personal profile section of Employee Self Services.

 

When am trying to copy the standard FPM Configuration HRESS_CC_PER_DTL_PERSDATA_US to a custom configuration and am then looking to change the type of field to read only, I do not see the read only option in the dropdown of the 'Type of Field'. I would like to know how to make the fields read only.

 

Secondly once the FPM Configuration Screen is copied to a custom configuration, how could we make sure that the changes made in the custom configuration take effect.

 

-Sushanth

Viewing all 8768 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>