Quantcast
Channel: SCN : Unanswered Discussions - ABAP Connectivity
Viewing all 1115 articles
Browse latest View live

Update values of custom fields in table HRPAD506-Additional Data for PAD506

$
0
0

Hi Experts,

 

my requirement is write a report program to upload a file with records.

I have to capture this records into an internal table and have to update values of 5 custom fields based on ADATANR.

 

Can anyone suggest me about any FM or any way of doing this.

Urgent requirement.

 

Will HRIQ_RFC_BOOKING_CHANGE help.

 

thankx.

Duttad.


RFC COnnection with .Net system

$
0
0

Hi for creating RFC connection with a .Net system how to find the RFC destination name. I mean to ask if coding has been done in the .Net system what would be the rfc destination "name"

 

How can I find it from the .net system or ask the .net developer to give me the rfc destination.

R3 and BO connectivity

$
0
0

Dear All,

Could you anybody tell me how to connect R3 to BO objects.

Thanks,

Harsha

SAP Noob...Getting 'BAPIRET2_' instead of Contents of That Statement

$
0
0

Hi all,

 

I am an SAP noob so please bear with me. I am an IBM Sterling Integrator Developer, which has a component which interfaces with SAP. I am trying to run an RFC for my client. When he runs the RFC on his end, through the Test Function Module, he is able to review the results for the ET_RETURN parameter

 

When I run it through my Sterling Integrator application, I only get BAPIRET2_ for the return parameter. This is shown below:

 

<ET_RETURN>BAPIRET2_</ET_RETURN>


Is there a way to view the contents of that BAPIRET2_ statement?


Thanks,

Tim

SAP RFC connection with .net

$
0
0

I need to create rfc between sap and .net system. I need to find out what do i need to write in rfc destinaion in SM59 tab. How can i find it.

Multiple selection - VBA

$
0
0

Hello All,

 

first of all, I hope that my English will be understandable.

 

Description:

I must create a report for sales orders by planned deliver date. Most of info what I need are in VBAP, but there is no delivery date there, only in VBAK. I download VBAK by VDATU, result is a list with 500-3k pcs of orders. Next step shouId be I take these order numbers and "insert" them into VBAP-VBELN, but I'm not able to find out how can I do it in VBA (multiple selection, therefore I download that by ERDAT (large interval, because the orders can arrive to system more weeks before delivery date). Result is a code what is downloading VBAP ~ten minutes... It is not acceptable. I would like to choose a simplier example (where problem is the same): MARA.

I have only 2-300 article number per list but I have to download 80k articles because I can filter only prefix and H% is not so exact filter...

One-dimensional array is the only one solution what I tried for that but RFC call is false in that case.

 

Sub MARA() '(user As String, password As String)

 

Const TABLA As String = "MARA"

Const UZI1 As String = "there is no connection to R/3"

Const UZI2 As String = "something wrong"

Const CLIENT As String = "300"

Const LANGUAGE As String = "your logon language"

Const SYSTEM As String = "your system"

Const user As String = "your username"

Const password As String = "your pw"

Dim Tomb As Long

Dim LTomb As Long

 

’store material numbers from A column of xls into matDatabank

    LTomb = Worksheets(1).Cells(Rows.Count, 1).End(xlUp).Row

    Tomb = 2

    If LTomb = 2 Then

matDatabank = "'" & Worksheets(1).Cells(Rand, 1).Value & "'"

    Else

Do While Worksheets(1).Cells(Tomb, 1).Value <> "" And Tomb < LTomb

matDatabank = matDatabank + "'" & Worksheets(1).Cells(Tomb, 1).Value & "', "

Tomb = Tomb + 1

Loop

matDatabank = matDatabank + "'" & Worksheets(1).Cells(Tomb, 1).Value & "'"

    End If

    matDatabank = Left(matDatabank, Len(matDatabank) - 1)

 

Set conn = CreateObject("SAP.functions")

conn.Connection.SYSTEM = SYSTEM

conn.Connection.CLIENT = CLIENT

conn.Connection.LANGUAGE = LANGUAGE

conn.Connection.user = user

conn.Connection.password = password

 

    retcd = conn.Connection.logon(0, True)

    If retcd <> True Then

     MsgBox UZI1, vbCritical

Exit Sub

    End If

 

Set RFC_READ_TABLE = conn.Add("RFC_READ_TABLE")

Set equery_tab = RFC_READ_TABLE.Exports("QUERY_TABLE")

Set toptions = RFC_READ_TABLE.Tables("OPTIONS")

Set tdata = RFC_READ_TABLE.Tables("DATA")

Set tfields = RFC_READ_TABLE.Tables("FIELDS")

equery_tab.Value = TABLA

 

toptions.AppendRow

toptions(1, "TEXT") = "MATNR IN" & "(" & matDatabank & ")"

 

’HM* selection needs more minutes because of huge amount of materials

'toptions.AppendRow

'toptions(1, "TEXT") = "MATNR like 'HM%'"

 

tfields.AppendRow

    tfields(1, "FIELDNAME") = "MATNR"

tfields.AppendRow

    tfields(2, "FIELDNAME") = "MATKL"

 

    If RFC_READ_TABLE.Call = True Then

MsgBox "success"

Else: MsgBox (UZI2)

    End If

  

conn.Connection.logoff

 

End Sub


Thank you for you help!


Regards,

Csaba

.NET CONNECTOR

$
0
0

Hello We are developing a .net application which serves around 120 - 130 users at the front end at the same time by using sap .net connector & SAP RFC user for -multiple simultaneous connections to the SAP back end.

 

In the above solutions do we have any licence violations / does SAP permit these in the SAP Indirect usage from third party applications. If at licence applies what would be the pricing and an alternate for the above solution in a cost effective manner.

 

But in the end when SAP does its auditing for measuring license costs it may end up with the same costs as if we were using multiple SAP user accounts for connecting our web application with the SAP or  Would that be a more cost effective strategy by means of SAP licensing? Or does it make no difference at all if we have multiple connections running at the same time?

Test connectivity to remote machine

$
0
0

I have created a web service consumer proxy to call a web service on a remote host from our SAP machine. However, ICF in SAP tells me that the connection to that remote host has been refused, so there might be a problem with firewall in between.

 

To check that I would need to make a test-connection from the SAP host to the remote machine, on a specific TCP port. Usually I would do that via telnet on the shell, but I do not have a shell access to the SAP machine.

 

So my question: Is there a way within SAP to test the connection to a specific port on a remote host?


Inbound IDOC error (Name MARA is not in the namespace for generated BW Metaobjects)

$
0
0

Hi everybody,

 

we are currently having some issues with importing idocs into our ERP DEV System and i cannot figure out what the problem could be.

 

I am trying to import an IDOC Type ARTMAS (5) but i keep getting the following error "Name MARA is not in the namespace for generated BW Metaobjects"

 

The system is a ERP only system with no BI content activated at all.

 

I don´t find any more errors nor any dumps or SLG1 entries related to this issue.

 

Did someone already experienced that kind of problem, or do some of you maybe have an idea where to have a deeper look.

 

thanks & best regards

Peter

 

EDIT:

Running on ERP 6.0 EHP 7 SPS 4

Selection screen values are previously used values reappear as defaults for new running of the in sap query

$
0
0

Hi Experts,

 

I am facing issue in sap query (sq01). i.e the selection values are reappear as defaults for new running of the report with new session which are used previously,

 

Could you please help,how to disable the values.The values should not reappear.

 

 

Thanks,

 

Krishna

PI RFC sender adapter throws exception for bgRFC

$
0
0

Hello community,

 

we created several interfaces from ECC 6.0 to PI 7.31 in the past. Most of those interfaces were implemented using sender RFC adapter.

 

Now we want to change an existing interface from tRFC to bgRFC. Below you can see the steps we took until now:

  • Change of RFC destination transfer protocol setting to 'Classig with bgRFC'
  • Setting up of bgRFC enviornment (supervisor destination, etc.)
  • Adaption of coding for bgRFC call

 

The ABAP-side works fine and I can see the request to PI in transaction SBGRFCMON. Unfortunately PI sender adapter returns the following exception:

"Commit fault: java.lang.Exception: error during TID to GUID conversion: com.sap.aii.af.lib.rfc.guid.GuidConversionException: Ch"

 

Has anyone encountered a similar problem? Are there any suggestions how to solve the problem?

 

Many thanks in advance.

 

Best regards,

Chris

S_ALR_87012284 Balance Sheet / P+L Statement

$
0
0

S_ALR_87012284 Balance sheet /P+L statement report has an hierarchy where it should say which accounts should go under eg. Tangable assets, which accounts to Travel expenses etc.

I am looking for the SAP table that holds this information. Does anyone know where this hierarchy data is stored in SAP?

 

thanks

What is "Path Prefix" while creating connection between abap and .net system.

$
0
0


Hi All

 

I have a requirement, wherein  my client has provided me a dot net webservice which needs to be consumed in SAP R/3 using which i have to build an interface between SAP R/3 and the legacy system. This interface needs to be synchronous in nature.

Please let me know how to handle this in ABAP and is this possible without using SAP XI / PI.

 

My job is to create an rfc connection for the above scenario. I am trying to do that by doing a HTTP connection in SM59. Is it the right process and if yes what do I need to mention in the Path Prefic field. Who will provide me the URL to be mentioned in the Path Prefix field.

Trusted and Trusting Connections Issue

$
0
0

Hi

 

I need to Create a trusted RFC between Gateway and Backend system. Because I have a combined frontend and backend system setup.

I only created in transaction SM59 an RFC connection to itself.

 

It should have the nameconvention: <SID>CLNT<CLIENT>.

And in the Logon & Security tab it should use the current user.

 

 

120.jpg

 

117.jpg

 

 

But when I create an RFC destination to the other system and make it trusting via transaction SMT1.

 

123.jpg

 

It show this kind of issue. I can't create successfully.

 

Eric

Inbound IDoc filter for ALE Distribution

$
0
0

Hi experts,

 

I have a bit different requirement where i need to filter a segment on an Inbound Idoc for a target system.

 

Reason being that in the source system there is a field, in E1P1013 segment for HRMD_A01 Idoc, which needs to be checked to create an Idoc but at the same time this segment is not needed in the target system.

 

Help document says that is same as in outbound processing but I cannot add filter in BD64 of target system! Tried a few more things like BD56 etc. but does not help, segment gets suppressed before getting to BADI ‘IDOC_CREATION_CHECK’.

 

Please share ur experience(s) if you have come across such requirement before.


--

thanks n rgds


Include Cost Center in Idoc INVOIC01 for FI invoice processing

$
0
0

Hi,

 

Which Idoc segment/ field in INVOIC01 do we need to use to enter the cost center number for the creation of an FI invoice?

 

Thanks

Sofia

Establishing connection btw 2 clients in the same R/3 instance, same Port??

$
0
0

Hi all,

 

 

I am trying to establish a connection between client800 and client020  , both are in the same R/3 instance.

 

in both clients I need to do the following steps :1 - T-code : SALE --> define and assign logical system

                                                                     2-  T-code : SM59  --> create RFC connection

                                                                     3-  T-code : WE21 --> create Port.

 

 

My question is : Do these clients have the same port (since they are in the same R/3 instance) ?


Thank you.

Triggering DEBMAS and ADRMAS from XK02?

$
0
0

Hi ,

 

I have a requirement where in I am supposed to extend CREMAS05 with address fields from ADCP and ADR6 table. Also it should have customer details from KNVK table. This is to accomodate the vendor contact screen in XK02.

 

I have extended it , and it is working fine, but now the requirement is whenever any change is made in customer fields/address fields , IDOC should get triggered automatically so that it can be sent to PI system with updated details.But this is not happening, even if the change pointers are registered in BDCP2, BD21 is not picking it up for processing. I have done all the settings ( starting from BD64 ).

 

I am able to trigger IDOC whenever any change is made to Vendor detials but how do I handle the idoc triggering on change of address or customer details changing ( SInce they will have different IDOC types, DEBMAS and ADRMAS)?

 

Is it possible to generate DEBMAS and ADRMAS  idocs from XK02? What am i missing here?

 

Please help.

IDOC User Exit for Customer Extension

$
0
0

Hello all,

 

I have created a Customer Extension(ZCUST_EXT) using Basic type DEBMAS02 to send SAP PI. Can any one please tell me what would be the User exit for Customer Extension. I searched for some exits like EXIT_SAPLVV02_001.. Kindly suggest me.

 

 

 

Thanks,

Chanukya

Not able to use oData Services for PUT method, Facing issue with BCONTACT_CREATE

$
0
0

Hi,

 

I am trying to use oData Services with PUT method, but it's not working. facing issue with BCONTACT_CREATE. error coming as below:

 

 

 

 

I checked in debugging, it's giving error in BCONTACT_CREATE FM.

 

Inputs are correctly passed,

 

There is a Badi ISU_UMC_BUSINESS_SETTINGS with method SET_BC_DEFAULT_PARAMETERS which returns basic settings how BP contact should be created. Maybe, those basic settings are not configured properly.

 

Could you please let me know that what all customization or configuration is required to make this working.

 

Early response will be highly appreciated.

 

Thanks

 

Prince Pasricha

Viewing all 1115 articles
Browse latest View live