Quantcast
Channel: SCN : Unanswered Discussions - ABAP Switching, Enhancing, and Adapting Standard Programs
Viewing all 716 articles
Browse latest View live

How to run a transaction from a batch file

$
0
0

Hello All,

 

I am trying to run a transaction which has a limit on data it can return so I need to run the transaction in batches. Can that process be automated. Example, lets say I need result for 300 lines but transaction can be only run for 10 lines at a time. Can I create a query or automated process so it is run 30 time automatically and result come out in 30 txt, xls, files?

 

Thanks

 

Aditya


Add fields in VL10 report - EHN

$
0
0

Hi ,

 

I am supposed to add two fields from Table KNVV-KVGR1/KVGR2 table in to alv report output of VL10/VL10A.

I have tried for BADI but none got trigged. Is.Is the any Badi/Exits available or do I need to go for explict/implicit enhancement.

Kindly help urgent requirement.

Thanks in advance.

 

Thanks,

D.Dutta.

User exit

$
0
0

Hi All ,

 

In standard t-code such as IW31/IW32 ,IW21 if any user exit or badi or enhancement spot is implemented ,how can I know & which user exit/badi/enhancement spot is implement in the satndard t-code.

 

Thanks you all in advance .

 

best regards,

pranjal

how to set timer for required time.

$
0
0

hi everybody,

 

i am basically a electrical engineer and i don't have a strong background in coding and i am in training for ABAP. it will be a  great help if some body could resolve my below written question.

 

the scenario is ,i am into a page in module pools where i will be typing or selecting some data and will be saving the data in a internal table. but the question is if i have to write or select it should be with in a specific time after which a information message will be displayed with a information that time is up and the current page should be blocked or some other page should open, the data also should be saved in a internal table.

 

basically the main focus is completely on setting a timer and set a specific time of 30 minutes or 1 hour or what ever we need and after that time the current page data should be saved in a internal table or were ever we want.

 

PLEASE HELP ME?

Inconsistancies in available stock in z custom table and LQUA

$
0
0

The users are using transaction code LT01 for assigning cost center for a particular quantity hence updating VERME feild in LQUA table. beside this we have another custom program that uses for stock movement and whenever the movement takes place through handheld devices at warehouse its update the stock quantity in MENGE feild of a Z custom table. Issue is that when the transaction is done in LT01 the quantity is updated in VERME-LQUA but not in MENGE-ZTABLE. Kindly suggest any solution.

 

 

Regards,

Faizan

How to find download and convert pdf format function module for a script

$
0
0

Hi,

 

I have script requirement its already fixed with nace tcode and when we run output type in tcode va02 its generatinga mail with attaching script ouput in pdf format. Now i want find how that script generating pdf format and attaching to mail there in driver program no any function modules using for that.

So anyone can help me for this finding.

 

Thanks.

Upload Download Corel draw and Canvas files in webdynpro from Database management Systems

$
0
0

We are having a requirement where we have to upload and download from webdynpro.

  • Canvas (*.cv*)
  • Corel Draw (*.cdr) - default.

 

I can create and read file from DMS using

FUNCTION - BAPI_DOCUMENT_GETDETAIL2

FUNCTION -CVAPI_DOC_CREATE

FUNCTION - BAPI_DOCUMENT_CHANGE2


I this possible to achieve this ?

what are the configs required in DMS for enable CDR file types?

I added a Corel Draw file in DMS using CV01N and tried to download in webdynpro but the after BAPI_DOCUMENT_GETDETAIL2

the called SDOK_PHIO_LOAD_CONTENT for convert to biniry.and called FM - SCMS_BINARY_TO_XSTRING to get XSTRING passing to

CALL METHOD cl_wd_runtime_services=>attach_file_to_response


Can we fetch the XSTRING data directly from DB for getting the data?

Changes in ´Additional tab B´ must only visible to one client

$
0
0

Hello SAP Programmers,

 

When i create addtional custom fields on ´Additional tab B´, these custom fields must only visible to one client(i am logged in as client 400).

 

Is there any way please suggest me.

 

 

Thanks & Regards,

NarsiReddy Cheruku


CALL METHOD im_account->set_exkn displays error MEOUT134

$
0
0

Hi;

 

I have a Z class [ZCL_IM_ME_PROCESS_REQ_CUST], in the method IF_EX_ME_PROCESS_REQ_CUST~PROCESS_ACCOUNT i get account and item information, this is done ok, i get the data that i need.

 

Now i need to change  wa_exkn-sakto value with a new value, but when i do this and run tcode ME51N i get the ERROR MOUT314 BAdI ME_PROCESS_OUT / ME_PROCESS_OUT_CUST.

 

But if i disable the code that changes wa_exkn-sakto the error isn't displayed. I've seen several examples and they do the same that i am doing, i don't see the difference.

 

Any help please

 

this is my code for method IF_EX_ME_PROCESS_REQ_CUST~PROCESS_ACCOUNT

 

IF sy-tcode = 'ME51N'.

 

      DATAwa_exkn TYPE exkn,

           wa_exknx        TYPE mepoaccounting_datax,

           wa_item         TYPE mereq_item,

           wa_itemref      TYPE REF TO if_purchase_requisition_item,

           wa_exkn_hold    TYPE exkn,

           wa_exknx_hold   TYPE mepoaccounting_datax,

           wa_item_hold    TYPE mereq_item,

           wa_itemref_hold TYPE REF TO if_purchase_requisition_item.

 

     DATA: p_bklas TYPE bklas,

           p_konts TYPE saknr,

           p_sakto TYPE saknr.

 

 

**************************************************************************

*                  P R O C E S S I N G                                   *

**************************************************************************

     IF im_count = 1.

       CLEAR:wa_exkn_hold,

       wa_exknx_hold,

       wa_item_hold,

       wa_itemref.

     ENDIF.

 

     CLEAR: wa_exkn,

     wa_exknx,

     wa_item,

     wa_itemref.

 

***********************************************

*   cuenta de mayor

***********************************************

     CALL METHOD im_account->get_exkn

       RECEIVING

         re_exkn = wa_exkn.

     MOVE wa_exkn TO wa_exkn_hold.

 

     CALL METHOD im_account->get_exknx

       RECEIVING

         re_exknx = wa_exknx.

     MOVE wa_exknx TO wa_exknx_hold.

 

***********************************************

*   items

***********************************************

     CALL METHOD im_account_ref->get_item

       RECEIVING

         re_item = wa_itemref.

     MOVE wa_itemref TO wa_itemref_hold.

 

     CALL METHOD wa_itemref->get_data

       RECEIVING

         re_data = wa_item.

     MOVE wa_item TO wa_item_hold.

 

 

*** validamos que el documento presupuestario tenga datos

     IF wa_exkn_hold-kblnr IS NOT INITIAL AND wa_exkn_hold-kblpos IS NOT INITIAL.

*** obtenemos la cta de mayor del documento presupuestario

       SELECT SINGLE sakto INTO p_sakto FROM ebkn WHERE kblnr = wa_exkn_hold-kblnr AND kblpos = wa_exkn_hold-kblpos.

       IF sy-subrc = 0.

 

         SELECT SINGLE bklas INTO p_bklas FROM mbew WHERE matnr = wa_item_hold-matnr AND bwkey = wa_item_hold-werks.

         IF sy-subrc = 0.

*** obtenemos la cuenta de mayor del material

           SELECT SINGLE konts

           INTO p_konts

           FROM t030

           WHERE

           KTOPL = 'PCHN' AND

           KTOSL = 'GBB'  AND

           KOMOK = 'VBR'   AND

           BKLAS = p_bklas.

 

           IF sy-subrc = 0.

             IF p_konts <> p_sakto. "cuentas de mayor diferentes de material y de documento presupuestario

 

******************************************************************

*   THIS CODE IS THE ONE THAT LAUNCHES THE ERROR MEOUT134

******************************************************************

               clear wa_exknx.

 

               MOVE p_konts TO wa_exkn-sakto.

               MOVE 'X' TO wa_exknx-sakto.

 

               CALL METHOD im_account->set_exkn( wa_exkn ).

               CALL METHOD im_account->set_exknx( wa_exknx ).

 

             ENDIF.

           ENDIF.

 

         ENDIF.

       ENDIF.

     ENDIF.

   ENDIF.


I've seen this link BAdI ME_PROCESS_OUT_CUST-&amp;gt;PROCESS_HEADER is never called that describes the solution for the error, but i'm not sure if it is the solution for the problem.


Thanks on advance.


David Fúnez

Tegucigalpa, Honduras

add two field in the document header purchase PO

$
0
0

Hello,

I want to add two field in the document header purchase PO, I used user Exit MM06E005 ,i create include CI-EKKODB (contains two field  ZDATES  and ZMOD_PAS ) and activated SAPMM06E screen 0101 for both field. How save the data in the table EKKO database by EXIT_SAPMM06E_006, EXIT_SAPMM06E_007 and EXIT_SAPMM06E_008?

Thank you.

Providing the Additional Tab to MIGO_GI Transaction (item wise)

$
0
0

Hi experts,

 

I have a requirement to add the Additional TAB in the MIGO_GI transaction.for this i have used the BADI MB_MIGO_BADI.

 

I have provided the custom program name and subscreen no in method PBO_DETAILS and hence i am able to see the
additional tab for the subscreen in MIGO_GI transcation.

 

My Custom subscreen consist of 4 fields out of which 2 are editable. (like Field1, Field2, Field3 and Field4)

 

I want to SAVE these four fields for all the line item wise (materials in this case) in custom table during the MIGO_GI transaction POST/SAVE functionality.


Moreover i also want  when user open the MIGO_GI transaction in Display mode then all these four fields for all the materials should be display with read only mode.

 

I dont have an idea on how to transfer these 4 fields value to the custom Z table during the document post and vice-versa during the display time.

 

Please suggest. (step by step would be more helpful)

 

Regards,
Jagesh

What happens if sort fields are empty in an internal table referring to standard structure like VBAP?

$
0
0

While creating sales order the internal table of type VBAP is sorted  based on the fields VBELN, UEPOS and POSEX. VBELN is same for all the items, UEPOS is 0 for all items and POSEX is blank for all items. In a case where line items are 10, 20, 30 to 220, then SORT statement did not have any impact on the internal table. If the line item exceeds 220, say a new line item is added as 230, then the items are sorted descending 230, 220 to 10. Can somebody please explain the reason for this behavior?

 

Regards,

Vignesh M

User exit or BADI for technical closure of a maintenance order

$
0
0

Hello,

 

 

 

Please I need the help of you.

Is there any User exit or BADI for technical closure of a maintenance order

 

 

 

 

regards

User exit or BADI IW31 PM

$
0
0

Hello,

 

 

 

Please I need the help of you.

Is there any User exit or BADI for technical closure of a maintenance order

 

 

 

 

Regards

Call new pop up from existing pop up in BSP

$
0
0


Hello All,

 

I am trying to call a pop-up (F4 help) from another pop-up (F4 help), but my new pop up overlaps the old one. It does not create a new window. Flow is as below:

A.htm (main page) calls -> B.do (F4 Help Controller) -> B.htm (F4 Help View) calls -> C.do (Controller for 2nd F4 Help) -> C.htm (View for 2nd F4 Help).

 

C.htm opens up in the same window as B.htm. Ideally It should open up in a new window.

 

I referred the below thread and done a similar coding, but does not help:

http://scn.sap.com/thread/751854


Default Drop Down List Box with value from the list in BSP

$
0
0


Hello All,

 

I have a BSP page with drop down list box wherein I need to populate value based on user action but it always defaults to the 1st value in the list.

 

Can you please help?

Using customer fields values in the worklist

$
0
0

Hello,

 

In transaction CAT2 I need to add two additional fields, values of which I want to use in the calculation of the worklist.

 

The values of these fields need to be multiplied, divided by the number of days in a month, and spreaded into the date list (DAY1 - 30).

They are zero in this screenshot:

Is it possible to change values of these dates in the time sheet at all?

 

First, I added two fields on the customer subscreen, using CATS0007 enhancement.

Then, I added customer fields into the CI_CATSDB structure, assigned to the CATS_ADDFI fields respectfully, using CATS0005.

But, I don't know how to connect these two enhancements.

 

Actually, I don't exactly know, if I needed to add these fields in CI_CATSDB structure, since I don't use them for other purposes, except for this calculation.

Maybe I should use memory to pass the values?

Any help will be appreciated.

Automatically Send email after Creating Invoice from VF01

$
0
0

Hello All,

Can any body has any idea how to generate pdf of invoice after user click on save of VF01 transaction.I create a Zdriver program and  create a new output type with medium 5 i.e for sending outside from sap, in my case the Driver program also not trigger i check in Debugg mode also.

I search and also found some use full link but still struggling to achieve it.Any idea.

 

Please share some idea how to achive the requirement.

 

 

Thanks

Sam

Exit or Badi in CK11N

$
0
0

Hi,

I run the transaction CK11N but i want to add an item in the product cost calcul.A item with an other cost element.

My product cost is with info record and i want to put an additionnal cost

I try with the exit COOM0001 and fill the T_COSSA but it's not work.

Do you have any idea ?

Thanks for your answer.

serge

Executing a Planning Enhancement in Debug

$
0
0

Hi Everyone,

    

In TCode MC95 (Display Planning) I would like to add some Customer defined F4 for three standard parameters in the selection screen.

    

I would like to use the standard enhancement MCP20007 to add my ABAP Coding.

   

I performed the following steps:

                                                         - In CMOD, I created a project and included the enhancement MCP20007.

                                                         - I activated the component and the project

                                                         - In SMOD, I entered the FM EXIT_SAPMMCP6_007 in the enhancement

                                                         - I created and activated the Include ZXSOPU07 that was specified in the FM standard version.

                                                         - I entered a few lines of ABAP coding in the Include to test the process in Debug Mode

    

When I execute the TCode MC95 the program does not break in the Include. It does not execute the command CALL CUSTOMER-EXIT.

 

Is there something that I should verify or am I missing something?

    

Thank you in advance for your help,

  

Sylvain

Viewing all 716 articles
Browse latest View live


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