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

BAPI to pack deliveries into HU's within shipment - please help

$
0
0

Hi,

 

Grateful if someone can help.

 

I have a shipment that can be viewed via the VTxxN transactions. The shipment has several deliveries in it. I want to emulate the packing of the deliveries into HU's (I have set up config to use external HU id numbers and will be using one of two packing material numbers) within VT02N (brown cardboard box icon) using a BAPI or fn module.

 

Im having difficulties with function module HU_PACKING_AND_UNPACKING which I thought was the one to use, but this fn module has a structure GS_HEADER51 which is populated when called from VT02N but of course its not populated when I test it or call from my code, and the contents of this structure are checked.  After creating an enhancement to set up this structure, for testing purposes, I then find other structures that are not populated.  It is going to get messy this way.

 

There are other BAPI's like BAPI_HU_PACK and BAPI_HU_CREATE but I dont believe these work with deliveries.

 

At the minimum I believe I need a BAPI that will accept the following four fields - delivery number, delivery item, HU id and packaging material number.

 

I dont want to write a CALL TRANSACTION calling VT02N as I need to pack HU's within containing HU's, so there will be multiple HUs to be packed - then I start having the difficulty of page up/page down screen control.

 

Would be great if someone with experience of this can help as Im stuck and really need to resolve this.

 

Kind regards in advance,

Jon-Paul.


Skip background print parameter screen

$
0
0

Hi,

 

My program has selection screen. This program should be able to execute in foreground and background manually. When every time execute it in background, the background print parameter screen always pop up to ask you fill in the "Output Device" and need to click the green check etc. My client would like to skip this screen, since output from background will be a file in the server. Can anyone know how to program in order to turn it off?

 

Thanks,

Meiying

How to remove hardcoded values in smartforms

$
0
0

Hi Team,

 

In our project migration is going on first, step they are changing the sales
organization names.

My work is need to find the hardcodes used in smart forms. Please suggest me
there are any reports or function modules to do this.

Following are the things I need to find out,

1. Hard coded used in the code lines of smart form.

2. Hard coded values maintained in conditions of each node.

3. Need to find out include names used in forms.

 

Please suggest me.Thanks in advance for all your inputs.

 

Regards,

Ravi Shankar.L

BAPI for release strategy

$
0
0

Hi Guys

I need know one bapi for release strategy.

Anybody can help me?

 

 

Thanks Comunitty.

Spool sending as an Email

$
0
0

Dear Experts.

 

I have build 2 reports which both are running as a job.

 

- the first one  creates a List with the Information and save it as a spool

- the second runs directly after the first and sent the spool has been created as an email.

 

Now I'd like to unite both reports in one, but I don't get how I can create the spool with the information from the first report without letting run it as a job.

 

Could you may be give me some advice?

 

thanks

 

Denis

How to remove extract space between pages

$
0
0

Hello Experts,

 

I've been given a requirement where I need to remove extra space between pages of a smartform (refer to the attachment). If you look at the following screen shot when you will notice that that there is a command provided to display details on these pages which has a checkbox 'Go to New Page'.

 

Also there is another there is another New Page command (as shown below).

 

Furthermore, under OUTPUT_TAB in MAIN window there are 5 tabs. The first one is “Table”. In this tab when I click on “details” button on the right hand  side of the pane then I see the following column checked.

3. 

When I unchecked all the above 'No page break' checkboxes in table tab and removed PAGE BREAK commands then page break issue was resolved but output was also changed which user don't want (as shown below. Table should have been break on BCVI on red line, which happens today but with so much extra space).


To view the correct output how user want please have a look at 'Expected' screen shot.

 

Now the question is what change I should make in my smartform to accomplish the expected output.

 

Many thanks in advance.o

Select-options filter in sql search.

$
0
0

Hello masters,

 

i am giving parameters to filter my search in sql statement but i want to change it to select-options.

i have searched the web but i couldnt find anything.

 

here is my code:

 

EXEC SQL.

     OPEN C FOR

       SELECT MAGAZAKOD, STOKKOD, ADET, BRUTTUTAR,

       INDIRIM, NETTUTAR, PROMOTIP, PROMOKOD

     from [dbMAROFIS_POS].[dbo].[PromoSorgu]

WHERE MAGAZAKOD = :P_WERKS AND

     TARIH = :p_budat

     ENDEXEC.


i want to change p_budat and p_werks.


thanks in advance.

ALV With No of Outputs

$
0
0

Hi All,

I have to display an ALV output as in the below format.

In the below sample illustration, 3 lists should be displayed one below the other with different Header or (Same also no issue) sections with its detailed list underneath it.

ALV Ouput-

TOTAL NUMBER OF PURCHASE ORDERS FOR THE MONTH - XXX

<Detailed List>

PO num    Vend    Material    Qty    Price    Plant

XX              XX         XX            XX    XX         XX

XX              XX         XX            XX    XX         XX

and so on..

....

...

Sub Total

Total

DETAILS OF THE MATERIALS PURCHASED

<Material Detailed list>

Material num    Mat type    Mat desc    UoM    Matgrp

XX                    XX             XX               XX     XX

XX                    XX             XX               XX     XX

and so on..

....

...

DETAILS OF THE MATERIALS PURCHASED

SHIPMENT COST DOCUMENT NUMBERS CREATED FOR THE MONTH - XXX

<SHIPMENT COST DOCUMENT DETAILS>

SCD #    Carrier     G/L Acc        Costcenter    Delivery #    Cost

XX          XX           XX                   XX               XX               XX

XX          XX          XX                    XX               XX               XX

and so on..

....

...

Sub Total

Total

The above is a sample illustration of the required layout. I need advise about how this can be achieved using ALV's(whether List / Grid) and Hierarchial / Tree etc and in addition it should be allowed to download to a XLS / CSV file.

Thanks


set default value for list box in tandard screen

$
0
0

hi sap experts.

 

i add an input /output field to my screen and set dropdown as 'listbox' .

 

i create a z table and insert some records to it.

in my main table (mara) i create an append structure and add a field to table and in foreign keys i refer my field to z table ,so in my screen when i select my list box i see the values in z table.

 

but now i have a problem,how can i set my list box whit a special value in z table?

 

thanks for your helps.

HR - PA20/30 Objectmanager - build own scenario

$
0
0

Hi All,

 

i am trying to build an completly new search-scenario for the objectmanager in PA20/PA30 transaction.

I think the ABAP code will be no problem at all, but for now the question is: "How to start an see an own scenario in PA20/PA30?"

 

I did some customising in SPRO on personellmanagement -> global... -> Objectmanager, but it had no effect. Is there someone who did this already or has some kind of tutorial or how-to?

 

regards

 

Felix

How to set Custom screen in ME21N when Payment Terms as particular value ?

$
0
0

Dear ABAP Experts ,

 

        I have a requirement that when the user select Payment Term as '0001' in ME21N t-code . then they want new screen (in that screen there are different types of input fields are available and these fields field by manually) . When the user Click on SAVE button all these details will save in one Custom Table(Z-Table).

 

How can i do This issue.

 

 

 

 

 

Thanks & Regards,

Chinna...

Basic Smart form "source" scan

$
0
0

Hi,

 

Some times there is a need to do a source scan of smart forms .

 

The recent needs that triggers this blog entry is here: How to remove hardcoded values in smartforms

 

Program Y_R_EITAN_TEST_31_08 (attached) is my attempt .

 

The program goes through the selected smart forms based on table stxfadm ,

 

For each form it extract xml document representing the form .

 

The XML document is iterated and each node is checked against the selection screen parameters.

 

The filtered nodes are presented using cl_salv_table .

 

(I did said it is basic....)

 

screenshot_01.png

 

screenshot_02.png

 

Enjoy.

Smart form page protection at runtime

$
0
0

Hello All,

 

I believe I have a bit special requirement to achieve in this scenario. Please help me if there is some good way to do it.

I have a smart form structure as shown below. Now there are certain elements ( highlighted in the image) which should display in one single page.

In other words, they should never display separately in different pages. If there is not much space available in current page,

a page break should happen and all of these elements should display in the next page.

 

The row width( MPO_DATA_ROW1 ) is not constant. Because it has a loop inside and hence the width will vary.

 

Smartform.PNG

I want atleast the first row from DATA_TABLE1 to display with TEXT9 and HEADER_TABLE1.

Sample Output of such elements together:

Output.PNG

My concern is:

1. How will I know how much space is left on the current page, at runtime. So that I can judge and do a page break ( Using command ) .

2. I have to determine how much space will these elements together take, beforehand. And due to the inner loops their width is not fixed.

I am aware of Folder concept and page protection. But I believe I cannot apply those here.

 

Kindly suggest some way!

 

Thanks,

Barkha

Total mistake due to page break in Smartforms

$
0
0

Hello Experts ,

    Kindly Check the screen shots and help me with solving the issue in Smartforms.

 

 

Capture1.JPG

 

 

 

Capture2.JPG

 

 

So, because of this the subtotal is calculated wrong.If all the is in 1 page then it is working good.

Please help me to solve this ..

 

 

Thanks in Adv,

Abhisek

Request having function group released but function module attribute shows not released

$
0
0

Hi experts,

               I am a beginner.


              There is a transport request in which my function group and other objects were present . This transport request and its task were released . But if i check the attributes section of the function module that is present in that function group , it shows not released .

 

Is there some problem ? did the function module not get released with its group? It wasn't showing anywhere in the request even though i had added it during creation.

 

Here is the image :

 

not released.png

 

Thanks,

Unnati


authorization objects for feature "where used list"

$
0
0

hello all

the place where I work is very strict in authorizations and in fact I am missing authorizations for performing a simple "where used list" on a field, which would be very helpful in finding the necessary tables.

I can use transaction SE12 but not SE11. When I try to use the where used list icon, I get an error. By performing SU53 immediately after, I get a message that transaction SE80 is what I am missing.

can someone tell me what authorization objects are necessary to be able to perform a "where used list"? I might be able to have those add to a role, if they are display only.

thanks

 

Alisa

Efficient way to convert CHAR to INT and sort an internal table???

$
0
0

Hello Guys,

 

I came across a situation where I need couple of alternatives to move ahead -

 

I have a Standard Internal table (I can not make it SORTED/HASHED --"Couple of constraints") - in an internal table there are only 2 columns -

1st Column - Offset - CHAR 3 (With or without minus sign)

2nd Column - Quantity - Packed value (Any value with/without decimal)

 

e.g.

 

internal Table.JPG

 

Question  -I want to sort this internal table based on GL_OFFSET in integer format and NOT Character format.

What would be the efficient way to do a sort in your opinion.....

 

 

 

PS: This internal table might contain huge data at times, so several looping must be avoided.

Upload info type S076 through MCSZ

$
0
0

Hi ,

 

I need details how to upload data to S076 thorugh MCSZ.

MB52 report problem

$
0
0

Hi

we added some columns in MB52 report (customize columns) now the problem is

If we run that report in foreground the report is OK, but if we run in background it doesn't show any customized  columns.

as per our ABAPER every thing is right that is why report is coming ok in foreground but not able to understand that why not showing in background.

 

please help as this is production issue....

 

Thanks

Aditya Rathore

Function PM_ORDER_DATA_READ exception

$
0
0

Hi All,

 

I am using fm PM_ORDER_DATA_READ in a dialogue program to get operation details for a particular production order.

Its works fine on its first execution, but throws a short dump on subsequent execution saying ...

-


A RAISE statement in the program "SAPLCOIT" raised the exception

condition "ITAB_ERROR".

Trigger Location of Runtime Error

    Program                               SAPLCOIT

    Include                                 LCOITU41

    Row                                     67

    Module type                         (FUNCTION)

    Module Name                       CO_IT_GET_PROV_OF_OPERATIONS

-


I've checked the function call & parameters passed to it in debug mode during its second execution. Everything seems to be fine.

 

M using ECC 6.0

 

Kindly guide if someone had got d same error & had got it solved.

 

    • You can also realize this by just executing PM_ORDER_DATA_READ in SE37 twice, each time using different order numbers.

 

Viewing all 8332 articles
Browse latest View live


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