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

BAPI_BUPA_ADDRESS_CHANGE replication issue - ISU

$
0
0

I am attempting to correct a program that utilizes BAPI_BUPA_ADDRESS_CHANGE to update customer mailing address in CRM. When the address update is made in ECC for the partner and guid combination passed, the BAPI also updates the corresponding SD customer address record when replicating the change back to ECC. When doing so, it deletes the ECC customer name stored in that record in ADRC. Table KNA1 looks to that address record for the name, so once deleted, the customer name also no longer shows up via transaction XD02. When we create service orders in ECC, the customer name isn't available any longer so it doesn't appear. We are executing BAPI_BUPA_ADDRESS_CHANGE with the following parameters (passing bp and guid):

 

*     update the address
      CALL FUNCTION 'BAPI_BUPA_ADDRESS_CHANGE'
*     IN BACKGROUND TASK AS SEPARATE UNIT
        EXPORTING
          BUSINESSPARTNER = <bp_addr>-bp
          ADDRESSGUID     = <bp_addr>-guid
          ADDRESSDATA     = ls_addr
          ADDRESSDATA_X   = ls_addrx
        TABLES
          RETURN          = lt_return.

 

Can anyone offer advice on how to make these updates without overwriting the ADRC-NAME1 and ADRC-NAME2 columns in ECC? Are we using the correct function module? Thanks!


How to create a broadcast settings in background in sap bi

$
0
0

Hello Abapers,

    I would like know is there any class or function module present to create the broadcaster settings in background.

 

Thanks,

Syed

How to add zeros infront of Number

$
0
0

Hi Friends.

 

 

I have an issue with adding zeros infront of number while downloading the file.

 

Here the number data type is WAERS.

 

for example :  number length is 15

 

value is 35.05 then  my output should be 000000000035.05

 

 

Please help me out of this

 

Regards

Sujatha

Missing authorizations check in RFC

The SAPFTP Library - FTP Programming in ABAP(Under Construction)

Need to Update VAT Registration Number (STCEG) In FB02 ? Need any BAPI or FM ?

$
0
0

Hi I need to Update Vat Registration number (BSEG-STCEG) in FB02.

 

the field is grayed out (Non-Editable) and i have tried updating same via FM

'FI_ITEMS_MASS_CHANGE' .

 

I am not able to do as its using BDC and cannot update the field.

 

If any standard BAPI or FM is available for updating the same please let me know or any other way to update ?

 

Please help me its really urgent.

group by syntax does not work in inner join statement

$
0
0

Hi all,

 

I need to make a select statement and group by 3 given fields namely batch material and plant. Following is my statement and I am getting the error:

 

Error message:

The field "C~MAKTX" from the SELECT list is is missing in the GROUP BY

clause. missing in the GROUP BY clause. missing in the GROUP BY clause.

is missing in the GROUP BY clause. is missing in the GROUP BY clause.

is "C~MATNR".

 

Anyone knows whether group by can be used in inner join or have I put in wrongly?

 

   SELECT a~charg
         a~matnr
         a~werks
         a~menge
         a~kdauf
         a~shkzg
         b~matkl
         c~maktx
  INTO CORRESPONDING FIELDS OF TABLE lt_product
  FROM aufm AS a
  INNER JOIN mara AS b
  ON  a~mandt = b~mandt
  AND a~matnr = b~matnr
  INNER JOIN makt AS c
  ON  b~mandt = c~mandt
  AND b~matnr = c~matnr
  WHERE a~charg IN s_batch
  AND   a~werks EQ p_plant
  AND ( a~bwart = '101' OR a~bwart = '102' )
  GROUP BY a~charg a~matnr a~werks.

Change code dynamically

$
0
0

Good Afternoon ABAPERS.

My company will change its name and must change all hardcodes all programs with the old name.

The problem is that some programs must be run with the old name.

The functional asked to run any program with hardcoded company name appear a screen where the user could choose the old or the new name and click 'ok' code change dynamically placing the name selected in the popup is old or new.

 

 

Is it possible?


RFC_READ_TABLE where IN sentence

$
0
0

Hi Guys!

I've looking a long time on the web, i would like some direction on this,

I'm using RFC_READ_TABLE transaction to parse some data from a table in SAP.

The problem is that I want to get the data for more than one order therefore I use the IN in the query as bellow:

I need to place several numbers on the list, when i type more than 2  number on:

tblOptions.AppendRow

tblOptions(1, "TEXT") = "MATNR IN ('000002840779902100','000009242000074000')"  

, it fires an error "system failure".

I need to pull out about 1k data numbers and i wrote a piece of code to add several numbers in a string variable:

 

Im using MARD table

 

Dim material as String

Dim eljuntos as String

dim myMaterialNumber(10000) as String

i = 1
j = 0
Do While Worksheets("Sheet1").Range("M2").Cells(i, 1) <> ""
    material = Worksheets("Sheet1").Range("M2").Cells(i, 1)
    j = j + 1
    If Len(material) = 10 Then
        myMaterialNumber(j) = "00000000" & Replace(material, "-", "") 'this sets the variable to 18 characters that is the required for the MATNR field
    Else
        myMaterialNumber(j) = "00000" & Replace(material, "-", "") 'this sets the variable to 18 characters that is the required for the MATNR field
    End If
     'This is because we have Part Numbers with length of 10 and 13 characters


     If j = 1 Then
        eljuntos = "'" & myMaterialNumber(j)

     Else

        eljuntos = eljuntos & "','" & myMaterialNumber(j)
     End If
i = i + 1
Loop

eljuntos = eljuntos & "'"

 

But when i try to use the sentence IN(, it appears a "system failure error", and doing it one by one takes too long.

 

objOptTab.Rows.Add

objOptTab(objOptTab.RowCount, "TEXT") = "MATNR IN (" & eljuntos & ") and "

objOptTab.Rows.Add

objOptTab(objOptTab.RowCount, "TEXT") = "WERKS EQ '7034'"

 

'This passes with no error,

'But when the function is called:

If objRfcFunc.call = False Then

      MsgBox objRfcFunc.Exception

End If

 

also tried:

tbloptions(1, "TEXT") = "WERKS EQ '7034' AND MATNR IN (" & ordCollector & ")"

 

It fires a "System Failure" Error.

I've found that the sentence OR could be helpful but i haven't found how this sentece works.

 

Please help Gurus!

Many thanks in advance!

Change LIPS-CHARG

$
0
0

Hi experts,

 

I need to change the values of LIPS-CHARG, because the delivery was created before the batch (MSC1N), and when the program try to make the picking, the error below occurs:

 

"The batches are not defined for delivery item 900002"

 

The solution that i found was create the batch before the picking (BAPI_BATCH_CREATE), and then change the LIPS-CHARG with the created batch to make the picking.

 

Somebody knows if exists some BAPI to change this information on LIPS ?

 

Thanks in advance.

 

Best regards,

Gustavo Prado

Leading Zeroes get lost while downloading from BLOCK ALV

$
0
0

Hello Experts,

 

I have a problem while downloading excel from Block list ALV.

 

As Block ALV doent supprt direct Excel download option,i export it through Localfile->Spreadsheet.

 

But the leading zeroes get lost.

 

Kindly let me know a suitable solution to download leading zeroes too.

 

Thanks.

Fonts Overlapping in Zebra Printer Output Using Smartforms

$
0
0

HI all,

 

I am printing a Label for Shipping and Receiving, This is the first time we are printing a Label through Zebra Printer which is 20 years old.

we are printing the label through smartforms, when we see the output in zebra printer fonts are overlapping each other though we have enough space to print the lines.

 

I have checked what are all the fonts available in Zebra printer and i have given the exact fonts in smartstyles to print the output.

any idea to overcome this? i have attached the label for reference.

 

when i check the output in normal printer it looks good, but it's jumbled when we see the output in zebra printer.

is this a problem with the printer or do we need to change anything in smartforms?

 

Thanks & Regards,

Dinesh RLABELS.jpg

How to find out the background job selection dynamic screen values like &0000000000001

$
0
0

Hello, All!

 

When I try to look at values for some executed job with variant like &0000000000001 the system says "Variant &0000000000001 is invalid". I do this from Step List Overview by selecting menu Goto->Variant in tr.SM37.

 

Does anyone have some idea how to find out values of variant like this?

In Web dynpro cells dropdown box read only based on condition

$
0
0

In webdypro we have a requirement we have a table   with three columns, the columns have drop down option, If we select first drop-down value to one cell, and remaining will be go to write mode otherwise we didn't give any value to first cell the remaining two cells should be in read only.

 

for example : ' COUNTRY' should be given as input field in first cell, Where as second cell as"STATES LIST" should be given as drop down and third cell as "REGIONS LIST" these should be in enable mode.

 

IF the first cell we didn't give any value the remaining cells should be in read only mode.  when ever we give first cell value than the remaining cells should be write mode.

 

How to put these in webdynpro. Please suggest me.

 

Thanks&Regards

 

Mahesh Reddy

debugging value help

$
0
0

Hi all,

 

I am little bit new to debugging and need you help.

I am debugging f110 automatic cheque generation to find from where i am getting a particular field value.

in the include LFPAYM_USF01 i want from where do i get value for IS_FPAYH-ref01.

 

while i schedule a backgroud job and look into the file that is generated i'm getting My company name in it which is coming from this field.

I need to know where this field is populated in ACH.

 

Please Help

Ramesh


XXL_FUL_API for more than 255 chars

$
0
0

HI All,

 

we are trying to download an excel file using XXL_FULL_API but it doesn't downloads data more than 255 characters in a column. After 255 it gives some garbage/unreadable values in that column.

 

How can this be resolved. We tried using another FM to download excel onto PC and then opening it via execute in cl_gui_frontend services.

 

Can we do something without changing XXL_FULL_API. Is this issue with SAP or with this FM. Can this be resolved with some note?

 

Thanks

Jitender

Standard Load program(BDC or LSMW) for pricing agreements

$
0
0

if there is a standard program that we can leverage to load these sales deals/pricing recs.  I can see the agreements in SAP through the standard pricing screens (like VK13), but cannot key them in through XK15 (I have to go to VB21 and then create the pricing through there).

SAPSCRIPT - TROY Signature related

$
0
0

We added a new company code and needed to add one more signature to the TROY DIMM installed on the printed. We got a new files from TROY and installed on our existing printer. This printer is was already using this setup and print signatures and MICR code. Now after installation certains windows and signature is getting printed on second page bt in same position. MICR number is not in MICR font installed on printer.

 

Please let me know what am I doing wrong.

Dynamic programming with field-symbol and select-option

$
0
0

Hello guys,

 

I'm developing a program that during execution time has in hands the name of a select-option, just that.

 

From that i want to assign this select option to a field-symbol and loop throw it.

 

Any suggestions?

 

I've been trying to do this all day long with no sucess.

 

Thanks alot.

No status object is available for HU 3056

$
0
0

I have a dialog program that is trying to update a delivery note using BAPI_OUTB_DELIVERY_CHANGE.  The first time I call the BAPI it works fine.  However, the 2nd time I call it and try to PGI, it fails with the error below.  I have debugged the BAPI and found that it is failing on this FM, HU_CONSISTENZ_CHECK.  There is an internal table called JSTO_BUF that is initial and that is what causes the error.  Once I get the error, I click execute again and it works.  I'm pretty sure it is a buffer problem.  Does anyone know how to initialize some sort of buffer for HU Statuses?

 

 

 

No status object is available for HU  3056

Message no. BS001

 

Diagnosis

When trying to read the status of an object (HU  3056), a system error occurred: For object number HU0000003056 there is no status object.

 

Procedure

Please contact your system administrator.

 

 

UPDATE:

 

I'm doing a direct update on a Z table before I call the BAPI to udpate the delivery.  If I comment out the update statement, it works.  Not sure why this update statement would cause an inconsistent HU error.

 

Edited by: Tony Raimo on Jun 4, 2009 7:22 AM

 

 

 

 

 

 

Viewing all 8332 articles
Browse latest View live