Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all 8332 articles
Browse latest View live

Call to FM 'RFC_SYSTEM_INFO' with destination TCP/IP is causing the dump?

$
0
0

Hi all,

 

I have created a pertner profile to connect ECC 6.0 system to Microsoft Biztalk syatem through TCP/IP RFC Connection..

 

But during idoc generation it resulted in ABAP dump due to the call to FM as below.

The call to FM 'RFC_SYSTEM_INFO' with destination TCP/IP is causing the dump in include LEDI7F16 of program SAPLEDI7.

 

 

else. " kein R/3-system, also z.B. TCP/IP

    CALL FUNCTION 'RFC_SYSTEM_INFO'

        destination edipoa-logdes

      IMPORTING

        RFCSI_EXPORT            =  rfcsi

      exceptions

        communication_failure  = 1

        system_failure         = 2

              .

    if sy-subrc ne 0.

.............

 

Thanks,

Subba


Change Attachment name and EMAIL Subject in SAP document

$
0
0


Hi Experts,

 

I have multiple queries for the background job creation:

 

In sm36 i am creationg one job with list of external or internal receipients:

so the attachment goes in SAP inbox( if user is internal) or User Mailbox (If user is external).

 

1- When User is internal means mail goes to SAP Inbox::

Please check the below pic:

 

9-jan-1.png

 

a) How to increase that expiration date on the mail.

b) How to change Email-subject of the mail, this is same as job name

c) How to change attachment name , this is same as job name.

d) Also suppose a job is already created by user, now can we add receipients list later to this scheduled job?

 

 

2- When User is External means mail goes to User Inbox::

 

9-jan-2.png

 

A) How to change name of email subject and attachment.

 

 

Regards,

A. Trivedi

SRM:How to remove a Signature details from mail

$
0
0

Hi All,

 

I am facing a issue when the approver selects the (Approve by Email or Reject by Email)screenshot1, a popup is opened in Outlook / Lotus notes.Where it automatically fetches the signature with company logo(screenshot2) of the approver.

 

Because of the signature and company logo, when send is selected by the approver the status of the shopping cart is not getting updated to approved.

 

If there is no signature the process is fine.

 

How to remove the signature with logo.

 

Screen1.jpg

 

screen2.jpg

SRM: Attachment in Approval mail

$
0
0

Hi All,

 

In SRM I am getting a Offline approval mail(below screenshot),once I click on the "Approve by Email" it is taking me to outlook screen,there I am attaching a JPEG file and sending it.But issue is my portal status is not getting updated.

screen1.jpg

screen2.jpg

 

 

Same thing without attachment the portal is getting updated.Any idea what could be the reason?

Native SQL Statement to sql server with linked server

$
0
0

I´ve created an native sql connection and now I want to execute the following statement.

 

If i execute the program with a static parameter in the where clause, it works.

If i execute the program with a dynamic parameter, I get the following dump.

 

How could I execute the script with a parameter?

 

CODE:

 

EXEC SQL.

      CONNECT TO 'MSSQL_KANT01' AS 'V'

    ENDEXEC.

  EXEC SQL.

    SET CONNECTION 'V'

  ENDEXEC.

  EXEC SQL.

    open c4 for SELECT password FROM OPENQUERY ( KANT, 'SELECT password FROM order.V_persons where personnelnumber = :lv_int')

  ENDEXEC.

  DO.

    EXEC SQL.

      FETCH NEXT c4 into :lv_str

    ENDEXEC.

    IF sy-subrc <> 0.

      EXIT.

  ENDDO.

  EXEC SQL.

    CLOSE c4

  ENDEXEC.

 

STATIC:

open c4 for SELECT password FROM OPENQUERY ( KANT, 'SELECT password FROM order.V_persons where personnelnumber = 4100')


DYNAMIC:

open c4 for SELECT password FROM OPENQUERY ( KANT, 'SELECT password FROM order.V_persons where personnelnumber = :lv_int')



DUMP:

ERROR 7350.

Cannot get the column information from OLE DB provider "MSDASQL" for linked server "KANT".


Attaching receipts to a Trip

$
0
0

I'm new to SAP generally and RFC/BAPIs specifically and I'm also not an ABAP Developer, so I apologize in advance if I'm using the wrong terminology, however, it seems like the people in this forum have the right knowledge that I need to accomplish what I'm trying to achieve. 

 

We are creating Employee Travel / Trip objects using BAPIs and would like to attach receipt documents to it. While with the SAP Windows client there's a GOS button that allows you to link documents to business objects, in this case a Trip, using BAPIs / RFC /FMs I cannot figure out how to link a document to the Trip object.

 

I was able to create a document in (I believe DMS) using BAPI_DOCUMENT_CREATE2 but this doesn't allow me to upload the file binary as far as I understand, unless I user the GUI_UPLOAD or connect to GOS.

 

I was also able to create the file using BDS FM (BDS_BUSINESSDOCUMENT_GET_TAB) and upload the file successfully. I'm able to set the classname and classtype in a flexible way. The document is created and can be found through the business document navigator app of SAP. However, I can't seem to find a way to link it to the Trip as an attachment.

 

I understand from reading a few forum threads (mainly in SCN) that I probably need to do is create a link using OBJECT_LINKS. However, everything I've tried in order to create the link has failed.

 

For instance, I know that the Trip object type is BUS2089 and that typically I should use ARCHIV_CONNECTION_INSERT to link the document, but apparently I'm missing something with the types of objects I'm using and can't make it work.

 

Notes:

1. I'm using .NET connector named ERPConnect - but that shouldn't matter as I'm able to run any RFC enabled function successfully.

2. Other then uploading a doc into BDS, I couldn't find remote functions to allow me to upload to other locations such as DMS etc. So I figured that my best shot is to link the document created under BDS into the Trip as an attachment.

 

Any help in understanding how this thing works and how to link my document would be appreciated.

 

Thanks!

Itzik

Additional fields on Material Master Detail side panel in nwbc

$
0
0

I'm new to WebDynpro development. I need to find out how to add tagged field 'Standard Price' from transaction MM03 to Material Master Detail side panel in NWBC? Please provide details. Your response will be greatly appreciated.

Web Services in ABAP VS PI

$
0
0

Hi sapients,

 

1. We have web services concept in ABAP. Then why do we need web services in PI?.

2., Can web services in PI will be replaced by web services of ABAP? if not why?

3. What are the limitations of ABAP Web services?

4. What are the limitations of PI Web services?

5. Are there any sap recommended approach that when do we use which web services?

 

 

Thanks,

RK


BAdI MB_MIGO_BADI CHECK_ITEM Error Message Handling Error

$
0
0

Hi all,

 

I've created a Z table to check whether user is authorized to make 201 against a material group.

To manage this, I've written my code to MB_MIGO_BAdI and CHECK_ITEM.

 

But there is very strange problem. When user enters a material that he is authorized and click check button he is getting an standart SAP error message which about Funds Management. Up to here, everything is OK.

After that, when user adds second material which he is not authorized, he is getting my error on related line but first line becomes GREEN indicator again. But there was standart SAP error about FM. So If he clicks Post he is getting this standart error again.

 

I which, I've introduced process well.

 

Edit: Please check attached Screenshot for better explanation.

 

Waiting for your comments.

 

Thanks in advance....

greying a row on selecting checkbox in cl_gui_alv grid

$
0
0

Hi Friends,

I am new to ALV OOPS . I am currently desigining an ALV grid in which there is a checkbox. The logic is that when the user clicks the checkbox, a popup is triggered. If the user selects yes , then he enters any amount in the field AMOUNTSELECTED and saves it in the table IT_BSIK_TEMP by pressing enter. My requirement is that as soon as the amount gets saved in the field AMOUNTSELECTED, the particular row should become grey and non editable. I looked at all the solutions in SCN regarding greying of row in CL_GUI_ALV_GRID, but still the row is not getting greyed. Please reply with corrections in the code. Kindly go through the attachments for clarity.

Regards,

Saurav Lahiry

Service Line Item cannot be deleted through IW32

$
0
0

Hi,

service line item in PM Work Order cannot be deleted after Ehp 740 upgrade. To be more specific, the deleted service line item was still showing up after work order is saved.

steps are below:

1 – IW32 -> order nuber -> Enter

2 - Click Operations tab -> Select line 0010 with XX control key -> Click External button

3 - Delete one of the line items -> Save

 

Thank you,

Nag

IW65 Additional Field Enhancement

$
0
0

Hello,

 

I'm trying to enhance via IF_EX_BADI_EAM_SINGLELEVELLIST~FILL_ADD_FIELDS however, part of the code isn't even called. I looked up the program name for the transaction (RIQMEL60) but it doesn't seem to do anything. I included the following code to test whether it work or not:

 

if sy-cprog eq 'RIQMEL60'.

 

     CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'

       EXPORTING

*       TITEL              = ' '

         TEXTLINE1          = 'This worked'

*       TEXTLINE2          = ' '

*       START_COLUMN       = 25

*       START_ROW          = 6

               .

endif.

 

Any ideas? Am I using the wrong program or badi?

 

Thanks

int8 type in ABAP - where/when?

I want to print Payment advice per customer in F110. Please help.

$
0
0

Hello Experts,

 

I want to print Payment advice per customer in F110. As of now single PDF/spool is getting generated for all the customers entered in parameters. However business need is that we need to print separate PDf per customer.

 

How can i achieve this ?   Do we need to configure anything in FBZP ?

 

Or i do need to create a Z print program ..... if so how should i create ? Do i need to copy standard print program and do changes or is there any other way to achieve same.

Push buttons in module pool are not working correctly

$
0
0

Hi all,

 

i have made a simple module pool program on water puzzle . i have 8, 5 and 3 liter container and i need to fill at least one with 4 liter of water to solve the problem. so i made 6 different push buttons for moving water quantity from one to other container.

 

the coding is as follows:

 

case ok_code.

when 'mo85'.      " for moving water from 8L container to 5L

     perform first_routine.

when 'mo83'.      " for moving water from 8L container to 3L       "

     perform second_routine.

when 'mo58'.      " for moving water from 5L container to 8L

     perform third_routine.

when 'mo53'.      " for moving water from 5L container to 3L

     perform fourth_routine.

when 'mo38'.      " for moving water from 3L container to 8L

     perform fifth_routine.

when 'mo35'.      " for moving water from 3L container to 5L

     perform sixth_routine.

 

and the screen looks as follows:

YWATER.PNG

 

so when i press the any button from the six listed for the first time it works but when i press any other button from the six it does not work.

for example i moved water from 8l to 5l so i pressed button "move to 5l" as shown in image . it worked but when i tried other button say "move to 3l" it did not work. where as the clear and result buttons are working fine.

what to do?


Will the substituion rule triggers on BAPI or BDC call?

$
0
0

Dear All,

 

I know that the substitution  rule  if it is defined in a screen , It will work if I execute the T code manually.

At the same time , Will the substitution rule defined in a screen ( for example MIRO screen) will execute on BAPI or BDC call ?.

 

Regards,

Tibin Joseph

Best way to use a word/PDF template in SAP

$
0
0

Hello guys,

 

I'm searching for the best and easiest way to use a word template in SAP where some fields should be filled from the SAP data. Therefor I use a custom report which should call/open the word/PDF template.

 

Normally I would say I would use a PDF form but I think this would be too much effort because 95% of the text is standard text, only 5% of the information should be filled individually.

 

So whats the best technique to get that filled?

 

Regards
Michael

Regarding issue in field PRICE_CTRL(Price Control Indicator) in BAPI_MATERIAL_SAVEDATA

$
0
0

Hi,

 

I am using "BAPI_MATERIAL_SAVEDATA" to create material master.

i am passing VALUATIONDATA-PRICE_CTRL = 'S' to update in Accounting 1 View.

However after creating material, in MM02 the value is updated as 'V'.

 

I have checked in debugginh, the value is passed correctly as 'S', but saved as 'V' while creation os material.

 

PFA,

 

SS1.JPG

 

SS2.JPG

 

SS3.JPG

 

 

SS4.JPG

 

 

Thanks,

Pavan.

How to generate auto GR

$
0
0

Hi,

 

How to generate auto GR based on PO.

 

I am using function module like BAPI_GOODSMVT_CREATE to generate GR but not able to get GR number.

Please help me how to resolve.

 

Thanks..

Status during Time Sheet Validation

$
0
0

Hi All,

 

We are trying to restrict the total number of hours one can book under a particular Work Type.

 

We are using the User Exit EXIT_SAPLCATS_006 for this purpose.

 

As we all know user can submit Multiple entries under the same work type. Some can be approved, some can be rejected or some can be cancelled.

 

But the structure CATS_COMM of the Exit does not have STATUS field to check entries which entries are approved/Cancelled/rejected.

 

We have to consider entries only with statuses 10 20 and 30. If we don't consider statuses it will give erroneous results.

 

If anyone has faced such issues please let us know.

 

How we can overcome this scenario.

 

Is there any other User Exit or BADI for the same purpose.

 

Thanks and Regards,

Vinay Mutt

Viewing all 8332 articles
Browse latest View live


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