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

Smart form Footer Section length problem

$
0
0

HI..

In smart form i am facing one problem, First Please have a look on attached image.

In main window i put table it is having  Main area and footer, At footer section it is having some lines all most all 8 lines of rows it need to print.

The problem is that. Once main area table is displayed(row level data) Normally footer data will display. But in my form what is happens is

After main area if the footer is having suitable space(8 lines of space) it is displaying immediately. Other wise it will display total at new page.

you see in the attached image also . in the first page footer section is not displayed but it is displaying at new or next page.

But my requirement is how much of space is available it has to display at first page. remaining lines has to display at next page.

Can any one please tell me how could i do it. In the third image. you can able to see the footer section properties. It is all ready having the

Page protection. But it is printing at new page.  Need your valuable Suggestions.


Read long text in CS03 transaction

$
0
0

Hi,

 

I have a material , plant and BOM usage in CS03 transaction, for a particular line item I want long text in an abap program.

 

I know we can use READ_TEXT fm, and we can check in SE75 for the text ids.

 

My question is what value should be passed to READ_TEXT fm importing parameter NAME.

 

Thanks,

Bala

SAP NetWeaver AS ABAP 7.40 SP 8 - Developer Edition to Download: Configuring the TMS

$
0
0

After completing the installation of the SAP NetWeaver AS ABAP 7.40 SP 8 - Developer Edition, I found out that - unlike the CAL edition - this system does not come with a fully configured TMS, or rather that you need to perform some additional steps to get the TMS working.

  1. Either edit your /etc/hosts file or modify your DNS information: Assuming that your actual hostname is mysapnpl, ensure that the system is also reachable under the hostname mysapnplci (CI for Central Instance) since that is the host name that is generated into the RFC destinations TMSADM@NPL.DOMAIN_NPL and TMSSUP@NPL.DOMAIN_NPL. Without that, you will get communication errors when executing various TMS functions. To verify that this has worked correctly, start transaction STMS, select Overview> Systems, select the line containing NPL and execute SAP System> Check> Connection Test (F5)
  2. Now check the tp profile using STMS, select Overview> Systems, select the line containing NPL and execute SAP System> Check> Transport Tool and Transport Tool. This should check out OK with a green status. In my case, the tp profile was damaged and unusable, so I had to re-create it using STMS, select Overview> Systems, then Extras> Distribute and Activate TMS Configuration, ...to All Systems...

SAP NetWeaver AS ABAP 7.40 SP 8 - Developer Edition to Download: Installation on Debian Linux 8.0 (jessie)

$
0
0

This article relates to the SAP NetWeaver AS ABAP 7.40 SP8 - Developer Edition to Download. It might be placed at an intermediate level between the Concise Installation Instructions and the detailed Step-by-Step Guide by Thea Hillenbrand.

 

Personally, I prefer Debian to Ubuntu on headless server systems. It might be just a personal choice, but Ubuntu is a bit too "bunt" for me (sorry, bad pun). There are a few things to observe when installing the AS ABAP Developer Edition on a Debian Jessie system, so I decided to share my notes. I'm assuming you have a basic knowledge about Debian and have read the articles above as well as the readme file that comes with the download - you will definitely need the latter since the passwords are in there :-)

 

I'm using a headless Virtualbox setup, but I won't go into the details of its installation - there are plenty of instructions out there.

 

Install a pretty standard Debian 8.0 (jessie) amd64 system. Choose English (US) as language and then your country, making sure that you select the correct locale en_US.UTF-8. Partition the disk using the All files in one partition preset. After installing the base system, the software selection dialog appears - be sure to only select SSH server and standard system utilities here. Don't forget to install the guest additions for your virtualization software (instructions for Virtualbox are here).

 

Edit /etc/apt/sources.list and add contrib and non-free to the main sources, followed by

apt-get update

 

You need unrar from non-free because unrar-free is broken; you won't be able to extract the multi-volume archives. Now on to the dependencies:

 

apt-get install csh uuid uuid-runtime

update-rc.d uuidd enable

/etc/init.d/uuidd start

 

apt-get install unrar libaio1 lib32z1 libxtst6

That last library is required for the graphical installer, even on a headless system (ssh -XY <yourhostname>). Then edit /etc/hosts to permanently assign the IP address to the host name, thus making the installer happy. Alternatively, you might run the installer with the command line parameter -s.

 

Finally unpack the installation files and start the installation:

 

unrar x TD74SPS8_part1.rar

chmod u+x install.sh

./install.sh

Proceed as directed by the installer - this will take some time.

 

After the installation, edit /usr/sap/NPL/SYS/profile/NPL_DVEBMGS00_<yourhostname> to add the parameter icm/host_name_full if necessary and change PHYS_MEMSIZE to 30% as described in the Step-by-Step Guide. Request and install the license key as described in the readme and start hacking away...

How to write Dynamic Function Module

$
0
0

Hi All,

 

I have one requirement to dynamically create Remote enable function module.

 

I got one FM :  FUNCTION_CREATE.

 

It create Function module but there is no provision to write coding for FM.

 

Kindly suggest...

 

Thanks in Advance.

 

Regards

Vivek

Unable to post json data to web service API through POST method

$
0
0

Hi People,

 

I am struggling for quite some time now with this issue. I need to send details in the form of json and update it in web service API through POST method.

I have tried a couple of codes which I referred from the net, but no success.

Can you please provide some inputs regarding this?

Thanks.

Attribute CO_XT_JSON does not exist in IF_SXML

$
0
0

Hello Expert ,

 

I am calling RESTful service in SAP for POST method.I need convert ABAP data to JSON format .

In that i used IF_SXML=>CO_XT_JSON to convert but its giving error CO_XT_JSON is unknown .

And checked in other system its available there. Its look like  enhancement package issue . So please

suggest me how to add this attribute to this interface.

 

 

 

Thanks

Gaurav Sharma

how to hide "Amount in LC" field in MIGO.

$
0
0

hi..

 

 

as per client requirement, it is required to hide "Amount in LC" field in MIGO.

 

 

It is done in MB51, but when clicking on Mat. Doc. No. in MB51 display "Amount in LC" displaying in MIGO.

 

 

Kindly suggest how to achieve this.


How to provide checkboxes for particular records in alv ?

$
0
0

Hi experts ,

  Can i know how to provide checkboxes for particular records in alv.I am using  reuse_alv_grid_display??

 

for example:

 

      name    city

 

1   mike    abc

2   harry    xyz

3    bob    

 

 

So i need only checkbox for 3rd record i.e if city is initial?  can you please suggest me how to achieve it?

How to enable the page protection for line type in table smart form

$
0
0

HI,

I am facing one problem in, Smart form. Please have a look on below attached images. In first image at the bottom Remarks, Edcdata fields are coming after the table data is completed. Bottom window is fixed. For every pages it's need to print. The problem is Line type is try to print after the row level details. But it does not have the space. and it is over lapping the bottom of the window.

My requirement is if there is no space it need to print the next page. How could i do it. i heard page protection will be work. if i mentioned in the folder and if i enable the page protection the particular is section(Combination of some lines)  is  having the space it will be print other it will choose next page and printed. I need to apply the same logic here. But If i open smart form page protection for line type is not enabled.  Please have a look on second image. Is any body how could i enable check the protection check box for a line type. Will it work like a folder in smart form. Other wise is there any other way to Solve my problem. Need your valuable suggestions.

Email sent to customer – F.27 is maintained

$
0
0

Hi Expert,

Email sent to customer – F.27 is maintained in notes then statement trigger to that email id as attached attached screen  shot.

Notification sent to Acct Clerk email maintain in the below screen shot of customer master in Company code data (KNB1) table. Any time if someone run the F.27 Notification should go to the below maintain id in master record,

 

Notification should be: like 100 customer received the statement

And 10 customer has not received the statement because email id or F.27 has not maintained in the adr6-stms-addr table( Customer master)

Customer no. should also appeared which do not have email id & F.27

Performance of Reads

$
0
0

I've read discussions on this Forum and others where it is suggested that a Read Statement must always be accompanied by a binary Search.
I also found this on SAP Technical ( **************** - ABAP Performance Standards )

When reading a single record in an internal table, the READ TABLE WITH KEY is not a direct READ.  This means that if the data is not sorted according to the key, the system must sequentially read the table.   Therefore, you should:

o       SORT the table

o       use READ TABLE WITH KEY BINARYSEARCH for better performance.

 

 

I don't understand this as according to me unless it a Loop in Loop situation where a Parallel Cursor is to be used , the Binary Search together with the Sort, that is required for it would have a bigger hit on performance than a sequential read or a loop and exit.


Complexities of the algorithms

 

Sort                = O(nLog(n))  - Assumed that quick Sort is used
Binary Search = O(log(n))

Total Complexity = O ( n log^2 n )

 

 

Simple Read or a Loop and Exit  = n

 

Since clearly n has a lesser hit than n log^2 n , I've concluded that for a simple read required only once , it makes no sense to do a Sort and then a Binary Search as it will have a bigger hit on performance.

 

I've looked for this on the Forum but couldn't find the right question with the answer I needed .

 


PS: I'm assuming that I'm working with large enough data that complexities do become a factor.

Data Transfer from SAP SCM system to Microsoft Navision

$
0
0

Hi Experts!!

 

I have a new requirement where I have to Transfer data from SAP SCM system to Microsoft NAVISION.

 

what are the possible ways to achieve this requirement??

 

please share your experience and guidelines.

 

thanks!

 

regards

Aditya

Smart form Footer Section length problem

$
0
0

HI..

In smart form i am facing one problem, First Please have a look on attached image.

In main window i put table it is having  Main area and footer, At footer section it is having some lines all most all 8 lines of rows it need to print.

The problem is that. Once main area table is displayed(row level data) Normally footer data will display. But in my form what is happens is

After main area if the footer is having suitable space(8 lines of space) it is displaying immediately. Other wise it will display total at new page.

you see in the attached image also . in the first page footer section is not displayed but it is displaying at new or next page.

But my requirement is how much of space is available it has to display at first page. remaining lines has to display at next page.

Can any one please tell me how could i do it. In the third image. you can able to see the footer section properties. It is all ready having the

Page protection. But it is printing at new page.  Need your valuable Suggestions.

Convert from DataType RAW(1024) to DataType RAW(255)?

$
0
0

Hi all,

 

Is it possible to convert data from Structure type TBL1024 to  Table Type  SOLIX_TAB.

 

Thanks,

Subba


BAPI_ACC_DOCUMENT_POST Parked document tax amount

$
0
0

Hi,

I am using BAPI_ACC_DOCUMENT_POST to park the customer invoice document. The document is getting created successfully, but there is a different in credit amount, due to tax amount. I can successfully post the document using same BAPI, but while creating with document status '2'(Parked), value of credit amount has twice the tax value.

Ex:

Customer Debit - 52.43

GL Credit - 49.00

Tax Credit- 3.43

But total credit is displaying as '55.86'. I have attached the screenshot for reference. 

 

I am passing the BAPI parameters as specified in SAP note 2229113.

 

Kindly help to resolve the issue.

 

Thanks in Advance,

Karthick

Trigger Workflow from BRF+

$
0
0

Hi,

 

Can anyone please provide a stepwise document on how to trigger rule based workflows from BRF+. I have seen other posts on this but the embedded documents do not open and hence not able to get the information.

ALV Grid - F4 help in dynamic editable alv grid

$
0
0

The image shows an alv grid with the columns Method and Value, Monday... Friday. (Refer attached image : cropped.png )

 

Except the column Method and Value, rest of the columns can be dynamic.

 

That means, instead of Monday to Friday, I can have months, years, etc.

 

Column Method and Value is fixed and the values for them i.e.

Value 1

Method 1

Value 2

Method 2

     are also fixed.

 

For that I have done handle dropdown, where the user can select whatever he wants like Value 1 which can or cannot have a method 1.

 

Now my requirement is,

     Suppose the user wants to have a method name which is giving this value 1, or method 2 which is giving the value 2, which I already have stored with me ( I mean the method names ) to get the values, I have to show all the list of possible methods as F4 help.

 

It means that if in the dropdown of Method and values column, if the user selects method 1, then next to it for Monday in this case, I should have an F4 help.

 

For example the methods available are : Addition, Subtraction, division, Multiplication under method 1.

 

So that cell which corresponds to the same row as that of the Method 1, should only have F4 help with the above values.

 

Any kind of input will be very helpful.

 

Questions are welcomed.

 

Thanks and Regards,

Gopa.

MIRO(Invoice Verification) posting date is lesser than MIGO(Goods Receipt)

$
0
0

   MIRO(Invoice Verification) posting date is lesser than MIGO(Goods Receipt) posting date.

 

Explanation:

Miro sholud be posted after the GRN has posted. It means that the Posting date of Miro should be greater than or equal to the Posting date of Migo. But I am facing the issue that I can able to post the Miro before the Migo date..

For example:  I have posted the Migo(Goods receipt) document with the posting date u2013 10.8.09 and at the same time I can also able to post the Miro(Invoice Verification) posting date as u2013 5.08.09. This is should not be allowed . Kindly give me the solution. Is there any options in SAP standards to restrict this type of Postings(without using user exit).

generic buffering

$
0
0

I am getting   error  in   generic buffering help pls

 

 

 

ZACTORS-ACTOR_RANK (Recommended length for field of type CHAR: 0)

This number of key fields is not permitted with generic buffering

Viewing all 8332 articles
Browse latest View live


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