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

Added Custom fields in Customer Data Tab in Me22n me23n and Me21n

$
0
0

Now the problem i am facing is that even though the fields are added in structure CI_EKKODB and layout has been updated with the required fields in screen 101 of  exit SAPLXM06. Added PBO event to make it display on screen..

 

but the problem is field is getting displayed but no value is there in ME22N and ME23N.

 

I tried updating the field value in to the database EKKO and value was there but it doesnt show up in the display or change mode.

 

 

pls help me out in this .

 

Also since ME21N is for creation can you also please help me out in finding a way to check whether there has been an entry made in Partners Tab in Function and Number Column.. I need to check its value in customer Data Tab where the above fields have been added.

 

Thanks in advance for all your help.


Runtime Error - PA40

$
0
0

Hello Everyone,

 

I am getting the run time error whenever I am performing T-Code PA40. It was working fine before but recently I have deleted around 13 personnel numbers and changed the personnel number ranges status from 13 to 0 and tried to hire an employee from personnel number 1. I am getting this run time error each time I perform this action.

 

Please find the below screen shot for your review and let me know how to solve this issue.

 

ERRORR.png

 

 

Regards

Prasad

Customer AFS additional data screen is not visible while doing LSMW using recording method

$
0
0

Hi,

I need to update few fields in AFS additional data screen of customer master general data (Available only for SAP-AFS module). I am being able to see the tab through XD02. But while creating LSMW to do the same using screen recording method, the AFS additional data is not available. Kindly let me know if there is any config related to make a screen visible while recording.

 

Regards,

Sugato

Take the personal note of the transaction QA32

$
0
0

Good morning guys

 

I've got a problem, I need to get a personal note transaction QA32, plus I'm not getting, I already searched the Read_Text function but could not find it, is there another way to get this kind of text?

 

Below is a picture of the text that I need to get to print on a form SmartForm.

 

 

QA32.png

Message no. ED800 - The source is protected.

$
0
0

Hello,

 

We have an issue with a program made by a consultant that left the company. The program is protected to view or modify Its source code.

I have seen many post and search thru google and found that they refer to a program ZHIDE that it's only compatible with 4.6 and lower. Tried It on

ECC 6 and didnt work. So We haven't found a clear procedure in order to un-protect this program.

 

In debug we have found that in program SAPLLOCAL_EDT1  FORM READREP the subroutine tries to load the soruce of the program

reading It directly from file:

 

/usr/sap/DEV/SYS/global/REPSZMYPROTECTEDPRGM

 

with the following stament:

 

open dataset name for input in text mode encoding default

 

When the program pass this stament sy-subrc = 8 meaning that It's not possible to acces the file. I guess the program is protected

at file permissions level.

 

So my question is:

 

Can someone provide a procedure to be able to un-protect this program ?

 

Regards

inner join vs for all entries

$
0
0

hi experts,

 

i have done SQL Trace on select statements using joins and for all entries.

 

case1: using joins and time taken             : 2.249.936

case2: using for all entries and time taken : 3.074.469

 

Clearly i can see that join is bit faster than for all entries.But i would like to know in which cases for all entries is faster than joins

and the cases in which joins are faster than for all entries.

 

i can see data being fetched from only KNA1 table in ST05 but i get data from KNB1 even.Without a fetch on KNB1,how am i getting data from

    KNB1 using joins.??

 

 

Please advise

 

 

TABLES: kna1.

SELECT-OPTIONS:s_kunnr for kna1-kunnr.

 

data: BEGINOF it_cust OCCURS0,

       kna1 type kna1,

       knb1 type knb1,

      ENDOF it_cust.

 

data: it_kna1 typeSTANDARDTABLEOF kna1,

       it_knb1 typeSTANDARDTABLEOF knb1.

 

*using joins

 

select * INTO  TABLE it_cust from kna1 INNER JOIN knb1 on kna1~kunnr = knb1~kunnr

                                                        where kna1~kunnr in s_kunnr.

 

*time taken  : 2.249.936

 

 

*using for all entries

SELECT * from kna1 INTOTABLE it_kna1 where kunnr in s_kunnr .

 

ifnot it_kna1 isINITIAL.

 

   SELECT * from knb1 intoTABLE it_knb1 FORALL ENTRIES IN it_kna1 WHERE kunnr = it_kna1-kunnr .

endif.

 

*time taken : 3.074.469

Download XLSX files in Background

$
0
0

Hello Everybody,

 

I am checking the ABAP2XLSX.

 

Is the ABAP2XLSX can download XLSX files in background using

open dataset statement ?

 

Could ABAP download XLSX files with no gui ?

 

Thanks Warm Regards,

Oren

Having XML file in my desktop and want to convert to XLS file through ABAP code

$
0
0

Hi friends,

 

I have requirement that by using XML file will be present in the desktop, and which will be converted into EXCEL file through abap code and i have to place in desktop or 'C' folder.

 

Actually through some other program, by using smartforms layout will be populating into XML file and saved in the desktop.

In that layout i have to write data and save as excel file.

 

It will be greatful for me to provide solution to the given requirement.

 

Really i strucked up with this issue. Please provide solution if any one knows.

 

 

Thanks & Regards,

J. Jayasankar Goud


Displaying Hierarchy info. inside Smartform Table Column

$
0
0

Hi Experts,

 

I have this problem in smartform that I couldn't solve yet and I need your help.

We have one table that has e.g 3 columns. The data in the first column, lets call
it "Description" Contains Hierarchal info. It is something like this:

 

-Trucks                                       ---> First Level of the Hierarchy

     XXXX

     YYYY

     ZZZZ

-Cars                                                                  ---> First Level of the Hierarchy

     XXXX                                                            ---> Second Level of the Hierarchy

     YYYY

          (1) Y111- This  is a  very good               --->ThirdLevel of the Hierarchy

car and it is very fast.

          (2)Y212- Not as good as Car

           other cars.

           (3)Y344- The best ever.

 

     ZZZZ

-Motorbike

 

My problem is, whenever the description inb column 1 reaches the column width,

it will break to THE Beginning of the line, not at the beginning of its hierarchy level, e.g. not aligned with its level.

 

Above:

1) Y111 is the problem I am having.

(2) This is how it should display.

 

How can we force the description in this column to start at its hierarchy level but
not at the beginning of the line after the line reaches the column width?

 

 

TIA

 

Regards,

Abdullah.

How to capture Table Control value in Partners Tab in Me21N

$
0
0

Hi Please help me in finding a way to capture value entered by the user in Partner Function Column in Partners Tab in ME21N tcode.

 

its really urgent can anybody please help me on this.

 

I need this value to be used in data population in customer data Tab.

 

Please have a look at the attachment maybe then you would have a clear understanding

 

thanks alot

Browser to view "Update your abap development"

Question on dynamic assignment in Structure.

$
0
0

Hi All,

 

I have a fixed DSO structure which is populated from BPartner hierarchy. The data fields-Parent level 1, Parent level 2, .. Parent Level 7 are updated with Parent Ids till level 1. So in the routine we start with Looping where IO Name = BP. Then depending on the level we keep updating the data fields one by one. Read the BP hierarchy table with Hierarchy Id and Parent Node No and Level = Level - 1.

 

Instead of having a Case statement for levels which will have 7 when conditions, is there any way to update the field dynamically.

What I am looking for is if we can determine which field to assign the value using something like Concatenate 'Parent' (level) to lv_field.

 

Then Result_fields-(lv_field) = Parent id. Appreciate any pointers.

 

Thanks In Advance !

 

Thanks,

Aparna

Function Module for Cumulative Call Off Quantity

$
0
0

For a query I need the Cumulative Call OFF Quantity like in VA33. Structure RV45Z-ABRFZ. Is there any function module around to this value ? I have found EXIT_SAPFV45L_003 but I don´t think thats what I need.

 

Thanks for any proposals.

Seletion field label of a table are appearing different in production and development system for SE16 tocde.

$
0
0

Hi There,

I have a custom table for finance related data.When I am login in development system and executing tocde se16 ,the selection screen displayed  are different in production and development system.

In Development system...I can see the field label with thier names like cost center, customer number, language etc..

But when i logged in production system, it is appearing as I1, I2 ,I3 ,I4...and so on the selection screen.

Please suggest what to do.

Shipping cost determination in SD

$
0
0

Hi All,

 

We have an issue where, the shipment cost is calculated based on the total weight of the materials in Delivery document.( weight involved for packing is not considered)

 

But the requirement is that the shipment cost should be calculated based on the gross weight of materials, including the weight involved for packing.

 

Kindly let me know, how to achieve this?

 

Is there any user exit/Badi for the same?

 

Rgs,

Priya


Get file length and file content in server side file

$
0
0

Hi experts,

 

I used GUI_UPLOAD function module to upload file in local machine to SAP server. In GUI_UPLOAD function module I can get export parameter FILELENGTH and tables DATA_TAB. So if a file locate in server side, how can I get its length and content?

 

Thanks for any help!!!

Print only one copy of Billing Document

$
0
0

Hi:

 

I have a problem printing bills documents.  We need sometimes to print only one copy of the bill instead of all copies, using Tx. VF31 or VF03.

 

We have set up the number of copies of the billing in Sales order, so when printing  from these transactions always print all copies.  So I don´t know how to indicate the printing program that we only one copy (it’s Z).

 

Do you know if there is a way to print only one copy? Using a user-exit? Ideas, please.

 

Thanks in advance for your time.

 

Best regards.

Regarding Open data set and close dataset

$
0
0

Hi Experts,
I have never worked on the file download upload onto application server.

 

now i have a requirement like the report selection screen has 2 fields and email field ( where the user should be able to enter multiple rows ) on the selection screen .

Hence based on the two selection screen field couple of records needs to be picked up from KNKK table.. now this content should be downloaded as below into a flat file on the application server.

 

VERSION;10.1

EMAIL;RESPONSE;abc@email.com

ADD;SALARYFEED;Field1.1;Field1.2;Field1.3

ADD;SALARYFEED;Field2.1;Field2.2;Field2.3

ADD;SALARYFEED;Field3.1;Field3.2;Field3.3

ADD;SALARYFEED;Field4.1;Field4.2;Field4.3

 

I dont understand how to achieve this..

I have couple of doubts now..

 

1) when it is said download file onto the application server.. what exactly it means..
   i am now selecting the data into an internal table and now i am looping the table and transferring the content into the filepath .. it is throwing run time error with the below exception..

 

   

  

 

Kindly guide what needs to be done

 

Thanks and Regards,
Swarnadeepta

More than 130 characters of email ids for dunning letters :

$
0
0

Hi , I have written BTE for 1040 to send dunning letter to multiple email IDS, But Right now we have only

130 character limit for Finaa-intad , but I have more email ids to send, Can anyone share or suggest different approach to

send multiple emails more than 130 characters

 

Thanks

NS

IP Address for Terminal ID in STAD Report?

$
0
0

How to get IP Address based on Terminal ID in STAD Report?

Viewing all 8332 articles
Browse latest View live


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