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

SAPScript: Do not print LAST page if NEXT page is empty

$
0
0

Hello,

 

I have a SAPScript with pages FIRST, NEXT, and LAST. The requirement is, if the content of FIRST does not spill over to NEXT, do not print the LAST page anymore. Is this possible to do?

 

Thank you very much.


FM called by macros in /SAPAPO/SDP94

$
0
0

Hi All,

 

I would like to create a FM which can be called my  macros in /SAPAPO/SDP94 to create planned production and I would like to pass over product, location, quantity and end date to the FM. From FM, I can only see product, location and quantity, don't see end date being pass over. Is there anyone has similar experience can light me on.

 

Thanks,

Meiying

how to display the data in cutom screen

$
0
0

Hi experts,

 

my requirement is the user select the a record from report output then the corresponding item data should be display in next screen,  finally once the user click on (custom button) the data should update in backend transaction level.

 

i have created the report , now if i click on  one output record the the corresponding data  is displaying in next sub screen ( designed the dialog screen) ,now where i can write logic display the values in screen.

 

possible please send me some sample code.

 

 

regards

niru

Is it possible to do a SUM( CASE... END ) in ABAP 7.4 SP04?

$
0
0

Hi everyone,

 

We recently upgraded to EHP7 and we gain new features in ABAP.

 

Particularly the enhancements of open sql suits us very well with programs we are developing now.

 

However a SELECT I'm trying to do is not working. By the ABAP online help it should work, I think, but it is not.

 

I explain myself:

 

In the online help it states that you do a SELECT like this:

 

SELECT result

 

Where result is ... linesselect_list ...

And select_list could be a col_spec

And col_speccould be aggregate

And aggregate could be SUM( [DISTINCT] col|sql_exp )

And sql_exp could be sql_case

And sql_case could be CASE operand

                        WHEN operand1 THEN result1

                       [WHEN operand2 THEN result2]

                        ...

                       [ELSE resultn]

                   END

 

 

So, I think, I can do something this:

 

SELECT some_field, SUM( CASE ... END ) ...

FROM some_table

GROUP BY some_field.

 

But the ABAP editor keep saying that there is a syntax error after CASE given the message ')'  was expected here. no matter what I write after the word CASE.

 

I'm sure ABAP is using the new syntax 'cause in fact I can use CASE in a SELECT, but notSUM( CASE... as I said.

 

So:

 

am I missing something?,

SUM( CASE... isn't supported and it's a glitch in the syntax help?

Maybe the ABAP 7.4 SP4 I have does not support it and a later one does?

 

Any hint would be highly appreciated.

 

 

J.

IDOC reduction for ORDERS05

$
0
0

Hi,

 

Is it possible to reduce the idoc for ORDERS05? I used  BD53 and gave a new message type ZORDERS and it is asking for with reference to message type...I am not able to see orders there.

Can anyone suggest how to proceed here?Is it something that only master idoc can be  reduced?Pls suggest.

 

Regards,

Jeyananth

Delete item from screen VA01/VA02

$
0
0

Hi all,

I have a requirement to delete some line items (depending on a condition) when the user modifies the quantity of another line item.

 

 

 

I wrote the code to modify the UPDKZ indicator (to value ‘D’) of XVBAP and XVBEP tables and to delete the corresponding lines from GVBAP table, on USEREXIT_CHECK_VBAP routine of MV45AFZB include.

 

 

 

When the user saves the document it is saved fine. The problem is that the user remains seeing the line items even if they are marked for deletion and this behaviour can be confuse.

 

 

 

Is there a way to delete the items from the screen?

 

 

 

 

Best regards,

Gregory.

Delete statement not working

$
0
0

HI All,

I have written following delete statement that should keep only field A and B  in internal table.

How ever field C not deleted(ie internal table has fields A,B,C instead of A and B only).I will be thankful for kindly guiding.

 

 

DELETE IT_TAB where  data1 = '1234' and ( field ne 'A' or field ne 'B' ).

 

 

Thanks.

Adding custom fields to standard table (EKPO) or creating a Z table?

$
0
0

Hello Experts,

 

My requirement is to add around 25 new custom fields to EKPO (purchase item) table, this table has around 16.5 million records(and growing rapidly) with 9 active secondary indexes and 368 existing fields . Around 37000 new records will be added EKPO which will have values for the 25 new fields ( ie. original rows 16.5 million .. will have these new field blank ) Can you suggest the best practice around enhancing critical standard SAP tables such EKPO.

 

I understand that adding these field to standard table ( using include CI_EKPODB ) provides the advantage of enhancing the BAPIs , the archiving object , screen exit enhancements and other benefits that come from using a standard object. However from a database normalization point of view I feel it is a terrible idea. This will lead to wastage of database storage space and impact performance in the long run per my opinion

 

Please advise,

Regards,

Vivek


Defaulting Overdelivery Tolerance Limit while creating PO

$
0
0

Hi,

 

I have a requirement wherein we have a RFC which receives input from third party and creates a PO using BAPI_PO_CREATE.  In this, I need to  default the Overdelivery Tolerance Limit to 10% while creating the PO.  I tried  passing the input PO_ITEM_ADD_DATA-OVERDELTOL as 10 but this doesn't work.Is there a way of doing this? Please advise.

 

Thanks,

Pavan

How to connect CRM System Via ERP Syatem

$
0
0

Hi Experts,

 

I have a requirement:

I have two systems; 1. Development ( SAP-ERP), 2. CRM (SAP-CRM).


Now My requirement is:

1. How to know connection is exist or not between these systems.

2. How to establish connection between these systems, if there is no connection.

     For this what are the details i required to connect these two systems.

 

Please share the details and help.

 

Thanks for your valid suggestions.

 

Regards,

Sridhar Suppala.

How to change DDFTX table contents?

$
0
0

Hi guys,

 

I am having a simple issue, in my customer's productive environment the fields DDFTX-SCRTEXT_S, SCRTEXT_L, SCRTEXT_M (short, medium and long screen text labels) for a specific combination of TABNAME / FIELDNAME of this table DDFTX have other values than Develpment and Quality systems. Thats weird because in VIM Analytics (Open Text transaction /OPT/VIM_ANALYTICS) the ALV report showed with this transaction has different headers due that difference.

 

There is no maintenance view for this standard table (DDFTX), someone knows how to change it? Actually I looked for FMs DD_ACTUALIZE_DDFTX, DD_UPDATE_DDFTX but they dont work alone, so I looked where they are used but the classes and function pools where DDFTX is updated or inserted are called dynamically son I cannot see where they are utilized. If you can help please do so! Thanks

User Exit/ BADI for ME01- Sourcelist creation

$
0
0

Hiii

 

We need a place exit/ BADi to do vendor validation before saving soource list in transaction ME01.

 

Please provide suitable exit / badi for above requirement.

 

 

Thanks ...in advance.!!

 

 

Regards,

Nilesh

Is it somehow possible to add objects to transport request by code?

$
0
0

Hey gurus,

 

I would like to know if it is a way to add objects to transport request by code. Or how does it work in the SAP system when I am saving an object and assigning it to a transport request?

 

Regards,
Robert

 

<edited by moderator: changed 'transaction request' to 'transport request' >

 

Message was edited by: Manish Kumar

FPM OVP: how to prevent unnecessary processing?

$
0
0

Hi,

 

if I have a SEARCH and LIST in the same first page of OVP, then LIST processing is unnecessary (in fact: not wanted) in scenario when Search button was pressed, but the list could not yet be generated since the selection criteria was not correctly specified (mandatory fields missing or incorrect value was entered in some field). This is caused by fact that the event if_fpm_guibb_search=>fpm_execute_search is processed by all participating UIBBs in particular OVP page disregarding of SEARCH result. The following check works fine for me but I want to know whether there is any other standard way of preventing this unnecessary processing?

 

in IF_FPM_GUIBB_LIST~GET_DATA:

 

CASE iv_eventid->mv_event_id.

  WHEN if_fpm_guibb_search=>fpm_execute_search.

    IF search_completed( ) = abap_true.

* do the processing as SEARCH was completed successfully

...

ENDCASE.


 

METHOD search_completed.

  DATA(li_fpm) = cl_fpm_factory=>get_instance( ).

  li_fpm->read_event_queue( IMPORTING et_event_queue = DATA(lt_event_queue) ).

  ASSIGN lt_event_queue[ id = if_fpm_guibb_search=>fpm_execute_search ] TO FIELD-SYMBOL(<ls_event>).

  ASSERT sy-subrc = 0.

  IF <ls_event>-state = if_fpm_constants_internal=>gc_event_state-completed.

    rv_ok = abap_true.

  ENDIF.

ENDMETHOD.       

 

Thank you

Michal

BAPI for Sorce List (ME01)

$
0
0

Hi,

 

Is there any BAPI for Source List (ME01)?

 

Thanks


ME01 exit&badi

$
0
0

Hi !!

 

Anybody knows which exit/badi in ME01 will be ok to add additional checks before saving data to EORD table.

 

Br, Jacek.

After transport, SMARTFORM does not appear in table STXFADMI

$
0
0

I created a SMARTFORM in DEV Its name is: ZAAF_REG_AF3_V05

 

I used this SMARTFORM in a program. The program and the smartform work fine.

 

I requested a transport to QAS for this form.

 

The transport was succesful.

 

In QAS i use the transaction SMARTFORMS to verify the existence of my SMARTFORM

 

My SMARTFORM appears:

 

01-smartform.PNG

 

 

But my program does  not work and does not show my smartform.

 

 

I debug my program. The program work well until it calls the smartform

 

 

When the program calls the smartform it stays idle....

 

 

With transaction SE11 I explored  the table: STFXADMI



In QAS  the table STFXADMI does not have my smartform ZAAF_REG_AF3_V05:



02-smartform.PNG



In DEV  the table STFXADMI does have my smartform ZAAF_REG_AF3_V05:

 

 

03-smartform.PNG

 

 

Why?

 

Why my smartform does not appear in STFXADMI

 

Why my smartform does not work in QAS?

 

 

Thank you in advance.

How to get informations about infoset

$
0
0

Hello,

 

I need to get informations from a specific infoset. Not BW infoset but R/3 infoset. I try to look at RSQTOBJ table but this table is only for BW infoset.

I need a table where is store all fields from an infoset. Or a function module to get the fields.

 

Can anyone help me?

 

Thank you in advance

Best regards

 

Florian

Table control

$
0
0

Hello all,

 

I am not able to increase the display lines of table control by default. It shows only 2 and i need at least 4.

 

Not sure what wrong i am doing. BTW, the table control in my screen has 9 rows created by default.

 

Following is my code:

 

Untitled.jpg

 

Thanks for your help.

 

Salil

Display ALV column

$
0
0

Hola expertos.

necesito una ayuda con un ALV, tengo el presente problema.

uso el modulo de funcion REUSE_ALV_GRID_DISPLAY, a la cual tiene como parametros de entrada los siguientes:

 

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

     EXPORTING

       i_callback_program       = repid

       I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'

       i_callback_user_command  = 'USER_COMMAND'

       i_callback_top_of_page   = 'TOP_OF_PAGE'

       i_structure_name         = 'TI_ALV1[]'

       is_layout                = alv_layout

       it_fieldcat              = alv_field1[]

       it_sort                  = ti_sort[]

       i_default                = 'X'

       i_save                   = 'A'

       is_variant               = alv_variant "w_es_variant

       it_events                = p_ti_evento[]

       is_print                 = gs_print         "Print

     TABLES

       t_outtab                 = ti_alv1[]

     EXCEPTIONS

       program_error            = 1

       OTHERS                   = 2.

   IF sy-subrc <> 0.

     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

   ENDIF.


ALV is generated the proper activation:

 

ALV.PNG


but when generating the print spool in the order I get this:

print.PNG

removes two columns of the table.


but to generate a excel columns are suppressed in printing are shown.


excel.PNG

I've tried various options but still can not find the solution. please help.

Viewing all 8332 articles
Browse latest View live


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