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

Sales Order : Problem with incompletion log for items

$
0
0


Hello Experts,

 

I am trying to get the incompletion log details for each item of a sales order. I can get the data from xvbuv[] and xvbup[].

However I am stuck in a strange issue as explained below.

 

I am working in the exit move_fields_to_vbak . For a given order say O1 there are two items ( I1 and I2 ).

Now for the two items I1 and I2 the exit is getting 3 times.

 

Call 1 : vbap-posnr is I1, xvbuv[] and xvbup[] is null.

Call 2 : vbap-posnr is I2, xvbuv[] and xvbup[] contains the data for item I1

Call 3 :  vbap-posnr is I2, xvbuv[] and xvbup[] contains the data for item I1 and I2.

 

The problem here is that vbap and (xvbuv[] , xvbup[] ) are not in sync. I want to process the items one by one in each pass ( Call 1 and Call 2 ) but I am not able to get the correct data. Is this normal behaviour and any idea how to deal with it ?

 

Please let me know if any clarification required.

Regards,

Sayantan


Exit / BTE for PARKED invoice documents (FI)

$
0
0

Hi guys,

 

I have a requirement that is to print a parked document. As I have searched, it is not possible because SAP does not let you create a message for a parked document.

I have already created a test program that retrieves all the information from the Parked Document as call the smartform.
What is needed?
I am looking for a exit/bte/something on the end o saving the Parked document to call the Smartform.

 

I already have a list of exit's but cannot find the right one, it is for yesterday like everything in consultancy.

Any ideias??

 

Thank you.

collect statement issue

$
0
0

Hi techies ,

Loop at itab.

Itab-f1 = *.

Itab-2f=*.

Collect itab.

Endloop.

 

At one point of loop my collect statement is summing the amount variable and  can you please tell how to avoid it or any other way to edit the code?

need to create a function Module

$
0
0

XML data is stored in SAP standard table ‘/SLCE/CFG_XML’. External systems will retrieve this XML data using a custom function module . The external systems will use the field ‘XML GUID’ as the argument/key to fetch the XML data stored in the field ‘XML STRING’ along with the two other fields ‘CHANGED BY’ & ‘CHANGED AT’.

i have to create a custom function module with three export parameters:

1. one for XML STRING (STRING, length = unlimited)

2. one for CHANGED BY (Data type: CHAR, length = 12)

3. one for CHANGED AT (data type: DEC, length: 15)

in the table ‘/SLCE/CFG_XML’ the field ‘XML STRING’ can hold up to 1024 characters, and there are multiple lines for the same ‘XML GUID’. The export parameter (for XML STRING) in the function module should have concatenated string of all the lines into one string.

 

need to use  SAP standard objects for reading xml data:

Method: READ_XML_FROM_DB

Class: /SLCE/CL_XML_UTIL

 

 

pls guide to create FM

 

Thanks

XYZ

How to delete SAPScript in Quality server?

$
0
0

Hello to All,

 

our custom Z* SAPscript form has to be deleted in all systems.

 

It is deleted in Development server in all clients, except client 000..

Unfortunately it remains in Quality server client 100 even after the transport is released.

 

Any ideas?

 

Maybe transport failed at some point? How to check this?

 

 

Any help is appreciated.

Thanks and regards,

Alex.

I can't create a partner profile

$
0
0

Hi Gurues, How are you?

 

I'm coming here becouse I need your knowledge about this problem. When I'm trying to create a partner profile I get this message->

Object type US, ID IDOC2 unknown

 

I created the user IDOC2 in my minisap. But I don't undestand about the object type US, Do I have to create it?, because I tried but I couldn't .

 

So I create a data element (tx se11)  called ZU but it was unsuccessful.

 

This is the screen where I stopped:

CONSULTA OBJECT TYPE US.png

 

I would appreciate your help in this issue,

 

Best Regards,

Issue in BAPI_SALESORDER_CREATEFROMDAT2

$
0
0

Hi All,

 

I am using the BAPI : BAPI_SALESORDER_CREATEFROMDAT2 for creating the sale order. It works as expected. But the condition value which I pass through the parameter: ORDER_CONDITIONS_IN gets multiplied by 10. Please note that I am not passing the currency value. I have debugged the code and I have found that if we dont pass a currency value, then SAP automatically multiplies the condition value by 10.  Could you please tell me why SAP has introduced this logic? If I need to resolve this issue, do I need to pass my condition value as (condition value / 10). ?

 

Thanks,

Selva.

Data Load - Internal Table

$
0
0

Hi,

 

I am working on a development in solution manager system.

 

The report will fetch 3000-5000 documents and send it to PI.

 

The documents are all encrypted in base64 and is done in abap itself.

 

My question is whether I will have memory issue since the documents are high.

 

What is the best way to design this as I am fetching it all in internal table.

 

 

Regards

Sam


Triggering program form(subroutine) from MIGO using output types gives lock issue with Bapi_sag_change

$
0
0

Hi,

 

On creating the GR from MIGO tcode, based on the quantity check i am updating the field ELIKZ using BAPI_SAG_CHANGE.

 

And updation logic is written in a zprogram using with in FORM XXXXX...ENDFORM XXXXX. ( FORM XXXXX is configured in the output type ).

 

So the problem i am facing is on creation of the first GR with scheduling agreement number GR is posted successfully and under the output tab the i can see the green icon.

 

But on creation of the second GR with same scheduling agreement its showing red icon. The following is the error message " User locked the scheduling agreement ...."

 

I even tried using dequeue fm and transaction commit, but it didnt work. Please let me know how to over come the lock issue.

 

Thanks & regards,

Manojkumar K

Customize report RFCASH20

$
0
0

Hi all , i have a problem with this report , because i'm trying to make it for more than 1 cajo_number and i succed i a point , but i want it to look like this

 

 

 

 

but now what i have is this

 

 

imagen2.png

 

Please i apriciatte the help , what i need is to put the same alv for each cajo_number , just like the first image , instead of asset , cajo_number , thanks

Convert Date using Day Light Time Saving

$
0
0

Hi All,

 

I have to convert date in system date - EST to UTC considering if we have day light saving it turned on.. I have checked the sap table - TTZDV which is consider for day light saving.. And it is giving the day light start date from 6 Apr 2014, but day light start time is 9 March 2014.

 

The standard FM or convert statement is considering the entry in table - TTZDV. The FUNCTION 'IB_CONVERT_INTO_TIMESTAMP' consider the Daylight time saving but it is reflecting the change in time from 6 Apr 2014 as per table.

 

Can any one advice how we can match the system with actual day light start date or end date. Do we need to update table - TTZDV or any other suggestion.. Please advice..

 

 

Regards,

Rajesh

Usage of formatted text in SAP

$
0
0

Hello,

 

I have a requirement to provide the user with an interface where formatted text can be maintained and this text needs to be transferred to a smartform and subsequently converted to a PDF.

 

I have problems with SO10 or Text modules in transaction code SMARTFORMS where any formatting that I apply gets vanished when I click on SAVE.

 

For example, the user will maintain text like below:

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Hello,

 

This is a sample formatted text maintained in SAP and this needs to be sent to SAP Smartform where the formatting in maintained.

 

Thanks. .

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

The requirement is to produce the above text with the same formatting in smartform so that this is available in the PDF that i would be generating

 

Regards,

Srini

Is there a place where I can find all the field values for RH_STRUC_GET

$
0
0

Hello Gurus,

I there a place or maybe some documentation that will explain or give the different values for the FM RH_STRUC_GET fields ?

 

Thank you,

JZ

Making a field mandatory in additional data tab in sales area data in XD01/XD02

$
0
0

Hi,

 

Making fields in additional data tab in sales area data in XD01/XD02 as mandatory is not achievable through configuration. Also, user exit SAPMF02D was not helpful in achieving this. Kindly help me on this.

'Screen does not exist' error after transported to Quality server.

$
0
0

I have a report program which is working fine in development server. It is transported to quality server and when executed it throws dump. There is a CALL SCREEN statement in the program and the dump shows screen 1001 does not exists. I checked the program on quality server and when i double clicked on the screen number, it tells screen 1001 does not exist and do you want to create??. I rechecked the program in Development server and confirmed everything is active and have been catched in the transport request. When I checked with the basis guy, he said there was a component conflict error with the request while transporting and he overrided it.

 

 

Please tel me what should I do to solve this issue. Its very urgent. Please help.

 

Thanks

Johan


Issue Sending Emails in ABAP

$
0
0

hi,

 

I have a requirement where I have to send emails to multiple users with attachments. I was using 'SO_DOCUMENT_SEND_API1' functional module to do without any issues and everything was great.

 

But, as you all know that one fine day the requirement changed and I had to switch to 'cl_crm_email_data' class as this class would allow the email subject header be more than 50 Characters which most of other FMs do not(even the above mentioned FM didn't). But, the issue of using this class is that it sends a delievery confirmation email to the sender which is not needed.

 

Can you guys please help me here:

 

EITHER you guys can tell me any other FM or class which will allow email subject to be more than 50 characters

OR inform me how can I retrict the delievery confirmation emails from using the above class.

 

Regards,

Anuj

Filter doesn't work in ALV report

$
0
0

   Hello gurus,

I have an ALV report, But one filter doesn't work, any pther filter works perfectly. ould you please help me?

Here my images:

 

First I select one option:

Screenshot_1.jpg

 

And when I select "Subida" or "No subida":

Screenshot_2.jpg

indx table access using export statement

$
0
0

Hi ,

Can any one help me to resolve this.

we are getting an error in the program enhancement include.

at line no 82 and its job is failing as this is running in back ground.

|>>>>>|export l_t_zzpstyp to database indx(D7) ID 'IWSZZPSTYP'.                           

---------------------------------------------------------------------------------------------

 

full code

Line |SourceCde                                                                               |

----------------------------------------------------------------------------------------------------

|   52|           <fs1> TYPE ANY.                                                          |
|   53|clear:l_t_zzpstyp,l_t_zzwerks,l_t_zzbsakz,""ST20499/D7AK9A0VR5                      |
|   54|  l_wa_zzpstyp,l_wa_zzwerks,l_wa_zzbsakz. ""ST20499/D7AK9A0VR5                      |
|   55|IF NOT i_ekko-ekorg IS INITIAL.                                                         |
|   56|                                                                                        |
|   57|  CALL FUNCTION 'Z_EXIT_CHECK_PURCHORG'                                                 |
|   58|EXPORTING                                                                           |
|   59|  ekorg      = i_ekko-ekorg                                                     |
|   60|  exitname   = 'ZXM06U41_D7'                                                    |
|   61|IMPORTING                                                                           |
|   62|  exit_active= zxm06u41d7_active                                                |
|   63|EXCEPTIONS                                                                          |
|   64|  exit_not_found = 1                                                                |
|   65|  OTHERS     = 2.                                                               |
|   66|  IF sy-subrc = 0 AND zxm06u41d7_active = 'X'.                                          |
|   67|                                                                                        |
|   68|*}   INSERT                                                                             |
|   69|                                                                                        |
|   70|DATA: xuekpo LIKE ekpo.                                                             |
|   71|DATA: xuekko LIKE ekko.                                                             |
|   72|                                                                                        |
|   73|CLEAR: xuekpo, xuekko.                                                              |
|   74|*{Begin of change                       ST20499/D7AK9A0VR5                          |
|   75|clear:l_t_zzpstyp,l_t_zzwerks,l_t_zzbsakz,                                          |
|   76|      l_wa_zzpstyp,l_wa_zzwerks,l_wa_zzbsakz.                                       |
|   77|xuekpo-pstyp = i_ekpo-pstyp.                                                        |
|   78|EXPORT zzpstyp = xuekpo-pstyp TO MEMORY ID 'ZZPSTYP'.                               |
|   79|*Import ID 'IWSZZPSTYP' in requirement routine  RV61B922                                |
|   80|l_wa_zzpstyp-ZZPSTYP = i_ekpo-pstyp.                                                |
|   81|append l_wa_zzpstyp to l_t_zzpstyp.                                                 |
|>>>>>|export l_t_zzpstyp to database indx(D7) ID 'IWSZZPSTYP'.                            |
|   83|                                                                                        |
|   84|xuekpo-werks = i_ekpo-werks.                                                        |
|   85|EXPORT zzwerks = xuekpo-werks TO MEMORY ID 'ZZWERKS'.                               |
|   86|*Import ID 'IWSZZWERKS' in requirement routine  RV61B922                                |
|   87|l_wa_zzwerks-zzwerks = i_ekpo-werks.                                                |
|   88|append l_wa_zzwerks to l_t_zzwerks.                                                 |
|   89|export l_t_zzwerks to database indx(D7) ID 'IWSZZWERKS'.                            |
|   90|                                                                                        |
|   91|xuekko-bsakz = i_ekko-bsakz.                                                        |
|   92|*{   REPLACE    D7EK905213                                    2                 |
|   93|*\EXPORT ZZBSAKZ = XUEKKO-BSAKZ TO MEMORY ID 'ZZBSAKZ'.                                 |
|   94|EXPORT zzbsakz = xuekko-bsakz TO MEMORY ID 'ZZBSAKZ'.                               |
|   95|*Import ID 'IWSZZBSAKZ' in requirement routine  RV61B922                                |
|   96|l_wa_zzbsakz-zzbsakz = i_ekko-bsakz.                                                |
|   97|append l_wa_zzbsakz to l_t_zzbsakz.                                                 |
|   98|export l_t_zzbsakz to database indx(D7) ID 'IWSZZBSAKZ'.                            |
|   99|*}End of change                        ST20499/D7AK9A0VR5                           |
|  100|  ENDIF.                                                " d7 active                 |
|  101|ENDIF.  "i_ekko-ekorg populated                  

Add new field to Fast Change Button in ME22N

$
0
0

Hi Experts,

 

 

I have a requirement to add a new field (SLFDT - Statistical delivery date)  in ME22N fast change option.

 

I have created an append structure for MEPOITEM and MEGUI_MASSCH_ALLOWED_FIELDS, but the new field is not reflected in the fast change output.

 

Lot of discussions happened in SDN about this, but none is updated with a solution.

 

Kindly let me know if you could provide some hints on this.

 

Fast.jpg

 

BR/Josh

Old English Text MTRegular: SAP font upload

$
0
0

Hi All,


I got a requirement, where i have to apply 'Old English Text' to heading in Smartform. But there is no font with Old English format in Smartstyles. I have tried uploading through SE73. It was successfully uploaded into Font Family in SE73 as well as in Smartstyles, but after using the font in my Smartform there is no effect and i dnt see any difference. It is was not displaying as Old english format, but displaying the output just as normal text.

 

Can anyone help me on this???

Viewing all 8768 articles
Browse latest View live