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

How to download the error log for LSMW direct input method

$
0
0

Using LSMW direct method i have uploaded few longtexts ( Po text, basicdata text,inspection text). Where to check the error log after running direct input method ?

My requirement is ...... I have 1 lakh material longtexts to be uploaded ... if suppose 100 fail.. How to check which material long texts are not uploaded.. i.e., How to download the error log . Please suggest me

Screen shot if longtexts are successfully uploaded ( Direct input method )

 


putting 4 variable values in one alv column

$
0
0

I have one requirement in which i want to put 4 variable values in one column.

I have used concatenate statement , but it is not printing vertically in alv instead it is displaying horizontally in debugging.

Below is my code:

LOOP AT it_mseg INTO w_mseg.

     w_tab-budat_mkpf = w_mseg-budat_mkpf.

     w_tab-ebeln = w_mseg-ebeln.

 

     SHIFT w_mseg-matnr LEFT DELETING LEADING '0'.

     w_tab-matnr = w_mseg-matnr.

     w_tab-erfmg = w_mseg-erfmg.

     w_tab-erfme = w_mseg-erfme.

      on CHANGE OF w_mseg-ebeln.

      CLEAR w_tab-amount.

 

     LOOP at it_mg INTO w_mg WHERE ebeln = w_mseg-ebeln.

      case w_mg-ebelp.

         WHen '10'.

         cnt = w_mg-dmbtr.

         w_tab-count1 = w_tab-count1 + cnt.

         CLEAR cnt.

         WHEN '20'.

         cnt = w_mg-dmbtr.

         w_tab-count2 = w_tab-count2 + cnt.

        CLEAR CNT.

         WHEN '30'.

         cnt = w_mg-dmbtr.

         w_tab-count3 = w_tab-count3 + cnt.

        CLEAR CNT.

         WHen '40'.

         cnt = w_mg-dmbtr.

         w_tab-count4 = w_tab-count4 + cnt.

        CLEAR cnt.

            Endcase.

 

     CONCATENATE w_tab-count1 w_tab-count2 w_tab-count3 w_tab-count4 INTO w_tab-amount.

     ENDON.

 

    READ TABLE it_ekko INTO w_ekko WITH KEY ebeln = w_mseg-ebeln.

    w_tab-ebeln = w_ekko-ebeln.

     READ TABLE it_konv INTO w_konv WITH key knumv = w_ekko-knumv.

     w_tab-kbetr = w_konv-kbetr.

    APPEND w_tab to it_tab.

   CLEAR :w_ekko, w_konv, w_tab.

 

     CLEAR w_tab-amount.

    ENDLOOP.

Sales order creation for Real Estate HBS0 through 'BAPI_SALESORDER_CREATEFROMDAT2' Getting Error

$
0
0

Hi Expertise,

 

I want to create a SO in real estate sales through 'BAPI_SALESORDER_CREATEFROMDAT2'. Everything is going well but I can not match Business Entity Number (VBAK-SWENR) , and Number of Sales Unit (VBAK-SMENR) which is mandatory for the configured system.


In this BAPI structure there is not present any matching attribute to update. I have tried BAPI EXTENSIONIN but this is exclusively for Customizing append structure. But in this table VBAK there is a standard append structure named 'HBSVBAK' .


For this purpose how can I get rid of the issue?


Regards,

Debarghya Sarkar

Trigger PAI without PBO

$
0
0

Hi All,

 

I tried searching SCN for this issue but couldn't get any answer except the below one.

Automatic trigger of PAI/PBO | SCN

 

My requirement is to not do display screens repeatedly in LOOP  but to display it only once.

However I want  the functionality after pressing enter in PAI to be executed for all the records inside the loop.

 

I was planning to add condition in PBO which will check if screen is alreday displayed or not. IF yes, do not show again.

But my issue is if I am not executing PBO then I assume that screen will not be shown to user but if that's the case then how to trigger PAI logic for

which PBO was not triggered.

 

Is there any way to achieve it.

 

Please advice.

 

Thanks and Regards,

Jitendra

XKOMV-KWERT doesn't take XKWERT value with Customized Routine

$
0
0

Hi Gurus,

 

I have a problem with a custom value routine. Inside it a new value for xkwert is calculated but it never goes to its corresponding xkomv-kwert field. So the kwert field for my condition remains the same.

 

I've been debugging the code, mainly "LV61AA55" and I've seen that there are two ways to get to the routines execution:

 

1º )

 

* execute condition value formula not changing xkomv
* will normally be processed in xkomv_kwert_ermitteln    IF xkomv-kofrm NE 0 AND wertformel EQ space AND komp-kposn NE 0.      rettkomv = xkomv.      xkwert   = xkomv-kwert.      frm_kondi_wert-nr = xkomv-kofrm.      PERFORM (frm_kondi_wert) IN PROGRAM saplv61a IF FOUND.      xkomv    = rettkomv.    ENDIF.

 

2º)

* calculation formula  IF xkomv-kofrm NE 0.    wertformel = 'X'.    xkwert = xkomv-kwert.    frm_kondi_wert-nr = xkomv-kofrm.    PERFORM (frm_kondi_wert) IN PROGRAM saplv61a IF FOUND.    xkomv-kwert = xkwert.  ENDIF.

 

As you guys can see, on the second one it takes the xkwert value correctly into xkomv-kwert but in my case it never pass through that code inside form "xkomv_kwert_ermitteln". On my case, it always go through the point 1 and never assign the xkwert to the xkomv.

 

 

I show you the code here:

 

Custom routine:

 

form frm_kondi_wert_930.
zkomv[] = xkomv[].
case xkomv-kschl.  when 'ZVAC'.    clear: kwert_aux, kbetr_aux, komv_aux.        read table zkomv with key kschl = 'ZIMP'.    if sy-subrc = 0.      kwert_aux = xkomv-kwert * zkomv-kbetr / 100000.      xkwert = xkomv-kwert - kwert_aux.    endif.  when 'Z234'.     clear: kwert_aux, kbetr_aux, komv_aux.    read table zkomv with key kschl = 'ZIMP' into komv_aux.    if sy-subrc = 0.      kwert_aux = xkomv-kwert * zkomv-kbetr / 100000.      xkwert = xkomv-kwert - kwert_aux.    endif.

endform.

 

Here are my condition specs:

http://gunshit.250free.com/SS1.png

 

 

So do you have any idea on solving this problem?

 

Thanks in advance,

 

John.

 

Edited by: John Smith on Jun 18, 2009 4:17 PM

 

in smart form name field in nace

$
0
0

Hi All,

I am trying to find the name of the smart form but in both NACE and TNAPR the value is <DYNAMIC ASSIGN> .

Can anybody guide me how to find smart form?

 

Thanks,

SD

Reservation Creations for MB21 with Input File

$
0
0

Hi All,

 

I Need to create a custom program with input data in file format with fields as below.

 

BASE DATE,MOVEMENT TYPE,PLANT,COST CENTER,MATERIAL,QUANTITY,STORAGE LOCATION,TEXT.

 

I have Tried with FM, MB_CREATE_RESERVATION , BAPI_RESERVATION_CREATE and BDC, Still i am not able to get it.

 

when i used FM, we need to generate the reservation number separately and fill the remaining fields and pass to the tables XRESB,XREUL and XRKPF.

 

Still not able to create reservations.

 

Coming to BDC also i am facing problems with quantity fields.

 

if Any one of you comes cross these requirements,please suggest me.

 

Thanks in advance

Ramesh

Unable to Update Long Text using CREATE_TEXT at header level

$
0
0

Hello Experts,

I am using CREATE_TEXT to update long text for PM notifications but unable to see text at header level.
But when i change to edit more i can see the text. I want ot see the whole long text at header levHeader.jpg

EditMode.jpg

 

Must be missing some minute thing.
Appreciate any help on this.

 

Thanks


Cannot we upload more than 10K records to internal table from excel multiple sheets data in sap abap

$
0
0

Hi Experts,

 

Read multiple sheets of an Excel file into SAP through ABAP - Code Gallery - SCN Wiki

 

Please check above link, i have written logic based on above link for uploading data from multiple excel sheets  to internal table. But the problem is the below internal table(I_DATA-ROW) row length is 4-Char. so the excel file sheet data is uploading only 9999 records  to internal table (I_DATA). But as per  my Excel per sheet more than 40K-Records has to upload to internal table. So anybody help on this which is best way to achieve this functionality.

 

CALL METHOD iref_spreadsheet->get_ranges_data

        EXPORTING

          no_flush  = ''

          all       = ''

*        updating  = -1

*        rangesdef =

        IMPORTING

        contents  = i_data

          error     = iref_error

*        retcode   =

        CHANGING

          ranges    = i_ranges

 

Thanks

surender

web service error

$
0
0

hello,

 

I am trying to test standard SAP web service.

 

employeemasterdatareplicationr_OUT

 

1. I tried it from SOAPUI tool with the WSDL file,

SRT: Plain SOAP: Reliable messaging (RM) configured, but no Message ID and no WSRM assertion provided.

 

 

 

2. I tried test  from SOAMANAGER then I am getting following error -- (button "open web service navigator for selected binding")


http://host:8001/sap/bc/srt/wsdl/flv_10002A1111D1/bndg_url/sap/bc/srt/scs/sap/employeemasterdatareplicationr?sapclient=100/ws/simple/getEmployeeMasterDataReplicationConfirmation_Out

 

then it routing to wsnavigator and getting 404 error.

 

3. WS Navigator is not working from SAP.

http://hostname:50000/wsnavigator  - this is also not working 404 error.



Can you please let me know how tot resolve these errors?


Regards,

Khaja.

selection of a query

$
0
0

i guru 

 

 

I would like to create a  new fields from a selection field in a query report , example:

 

  • in selection of a query , i have the limit date of the inventary (variable data at every launch) ==> in this example <= 31.12.2015
  • i would like create a new fields, for every record, whit the date 31.12.2015 present in the selection data

 

it's possible?

 

thanks in advance

Overcome the mandatory field to EXIT the screen

$
0
0

Hi All,

 

 

I am using working on module pool.

 

In one of my screen in have mandatory fields.

thru sreen painting i made them as required.

 

now i want to give a option to exit....

 

i wrote on user command EXIT ....leave to screen 24.

 

but as the fields are mandatory ...it is not allowing us to leave the screen...unless untill we enter the mandatory fields...

 

please suggest me how to overcome this issue..

 

Thnx

RK

Hr_infotype_operation

$
0
0

hi,

i am using hr_infotype_operation function module  for infotype 0028 to create the record of blood group details for  employee.I am able to update p0028 fields but not able to update the q0028 fields.

Adobe Forms Data flow to next page

$
0
0

Hi Friends,

 

I am designing Purchase Order using Adobe forms. I Have a requirement where if the data overflows to second page, none of the line item should get printed in the first page and all should only get printed in the second page only.

 

----- Is there any way to achieve this by Events scripts in Adobe forms or by any other means.

 

Please let me know.

 

Thanks in Advance,

Ajeeth

Adding Item level fields to vl06o tcode

$
0
0

Hi ,

 

I know that there is structure  LIPOV in function module EXIT_SAPLV50Q_001 in 'V50Q0001'.


But I need to add item level fields in VL06O,By using above function module exits I am not able fill the item level values in CT_POSTAB internal table.




Issue in running KKAO in Background in custom program via BDC

$
0
0

Hi Everyone,

 

There is a requirement for Automating production order for one of my client.

They want following transactions to be called sequentially via a background job.

 

  1. CO43
  2. KKS1
  3. KKAO
  4. CO88
  5. KKRV

 

I have created a custom program wherein im calling the BDC recording of each transaction which is to be run in background.

This program works best in my development server but its always failing in Quality/Sandbox server for KKA0 and not for others.

 

Can anyone tell me is there any restrictions in calling KKAO in background using a custom program ??

 

What i did was,

 

Created a main program and inside that i called the BDC reccording of each transaction mentioned above in the same sequence.

Each BDC recording will in turn create a new job respective to that transaction which you can see in the SM37 screen shot.

CO43 and KKS1 runs fine but KKAO fails.

Its telling that Job no longer exists but I am giving 1 minute to the future to run the KKAO background inside my custom program.

 

 

Kindly help me solving this as im stuck with this almost a month.

 

regards,

Vignesh.

BAdi ME_PROCESS_PO_CUST --> maintain GL Account (Sakto field)

$
0
0

Hello,

 

When I change allocation of a purchase order

--> i loose the gl_account

 

How can maintain the gl account when I change allocation in PO.

 

I find the BADI ME_PROCESS_PO_CUST but i don't find where the system erase old gl account to reaffect it.

 

Thanks in advance for your help.

 

Regards.

CL_HRPA_INFOTYPE_0021

$
0
0

Dear Experts,

 

I have to change the  obligatoriness of some fields of a method of CL_HRPA_INFOTYPE_0021.

When i try to change the code of  the method "CHECK_FIELDS" , the system  lock the code (even if I inserted the change key).

What is the way to update the method "CHECK_FIELDS" ?

 

Thank you in advance in your help.

Antonio

Send xml file from sap to third party url through https

$
0
0

Hi,

 

I have a requirement to send the xml file from ecc to a 3rd party url through HTTPS. How can we achieve this using ABAP.

Client doesn't have XI enviroment. The client has provided the 3rd party url where the file needs to be uploaded.

Please help ! <removed by moderator>

 

Thanks in advance.

 

Regards,

Chitra.K

 

Edited by: Thomas Zloch on Sep 12, 2011 12:58 PM

Next and Previous Buttons are not display in VA03 change document log

$
0
0

Hi Gurus,

 

We have upgraded our system from 4.6C to 7.3 and as per 4.6C in VA03 transaction, change document log we had next and previous buttons to view changes as per screen shot.

4.6C

PRD.JPG

but in 7.3 these buttons are not present

Dev.JPG

and my client requirement is same as previews one. So please gurus help me to get this resolve I really appreciate.

 

Thanks

Viewing all 8332 articles
Browse latest View live


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