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

Need BAPI/FM for c223 transaction code ??

$
0
0

Hi ,

I need BAPI/FM for prod version ...

 

i have searched through sdn and Google i didn't find any relevant bapi or fm's..

 

Pleae provide some sample code for creating PROD VERSION.

 

 

thanks and regards,

Lokesh.


Bulk upload in Services for Object

$
0
0

Hi Experts,

I want to upload documents using services for object facility in SAP. I tried with CALL METHOD lo_gos->create_attachment, but user has to manually select a file from the popup. Is there any FM which uploads data if I provide file name and document number in an Excel file? I used BAPI_DOCUMENT_CREATE2 in DMS for bulk upload.

 

 

Regards,

Sam

How to choose in Delete Duplicates from internal table?

$
0
0

Now I need to delete Duplicates from internal table,

So at first I sort

than I delete duplicate

Sort itab1 BY Company_Code  Asset_No Capital_Date.

      DELETE ADJACENT DUPLICATES FROM itab1 COMPARING Company_Code  Asset_No  Capital_Date

 

Company_CodeAsset_NoCapital_DateRemark
BC35151559320021225Helen
BC35151559320021225Common Asset
BC35151559420030109Judy
BC35151559420030109Common Asset

 

But here comes my problem~If I want to delete the Common Asset in Remark Column,how I let it choose the right one to do it?

page break for table in smartform

$
0
0

Dear all,

 

i have gone thru all the relevant posts and at last posting my query.

 

i am displaying table contents in the output...

 

The table HEADER has HEADINGS OF THE COLUMNS.

 

The table MAIN AREA has LINE ITEMS TO BE DISPLAYED IN COLUMNS.

 

The table FOOTER has TOTAL VALUES OF THE ITEM AMOUNTS.

 

there are multiple tables being displayed.

 

My concern is ...when ever there is a page break the total being displayed in the footer is getting adding an extra line item amount to the total,but that line item is being displayed in the next page and in the next page that item value is not being added.

 

i have tried all the ways

1. Using folder

2. Using NO PAGE BREAK check box in table tab node--

3. removing  PAGE BREAK  or END OF THE TABLE check box in the footer  ALTERNATIVELY.

 

by removing the page break checkbox in footer im getting the values perfectly but, no underline at the last page break....if i add underline...all rows become underlined like in boxes.

 

Any help in this regard would be highly appreciated.

 

regards,

Naren

rows selection in table control without mark disappearing after inputing

$
0
0

I have a question about Table Control.


Firstly, the screen of my ABAP program contains a text field and a table control. When I input something contents into the text field as search condition to get data from database, the table control will display the corresponding data.


I have succeeded in data displaying in table control. The second step is to select rows in table control without selection mark disappearing after doing some kind of actions like pushing ‘enter’ key.

 

Followed is part of my coding.

 

Tables: sflight. ”table control field name in screen

Data g_select type c. “mark name in table control

 

In PBO:

Module select_data_from_db.

LOOP AT   it_xxx
INTO wa_xxx
WITH CONTROL TB_CL01.

   MODULE move_to_ sflight.

  1. ENDLOOP.

 

In PAI:

LOOP AT it_xxx.

  MODULE modify_internaltable.

  1. ENDLOOP.

 

Module move_to_sflight is:

g_select = wa_xxx-mark.
MOVE-CORRESPONDING wa_xxx to sflight.

 

Module modify_internaltable is:

wa_xxx-mark = g_select.
modify it_xxx from wa_xxx index tb_cl01-current_line.


The problem is “Module select_data_from_db” will refresh the it_xxx and make the mark ‘X’ clear. So marked selected rows will be unselected after inputing.


I tried to move “Module select_data_from_db” into PAI and settle this problem, but someone told me it is better to put “Module select_data_from_db” in the PBO.


I am just wondering a solution or some standard samples if existed.

Thank you guys.

Smartform in Arabic - Dots prints at beginning of text

$
0
0

Dear All  We have one smartform for Goods Receipt.

 

We have desinged in Arabic Language.

( ls_control_param-langu = 'A'.)

 

All are okay.  But When a vendor name contains like  Co.  or LTd.   then the Dot is printed in front of the text.

 

Example :     MyCompany Co. Ltd.    -->  is printed as  .My Company Co  Ltd

 

Can someone help me where I am missing.

 

Regards,

Venkat

What is Read Lock object and write lock object.

$
0
0

Hi ,

When i have set read lock in this table then why it is giving permission  for modifying record in this table. 

 

report  zlockobject_zmara.
  data : itab typetableof zmara,
            wa likelineof itab.
select * from zmara into corresponding fieldsoftable itab.
loopat  itab into wa.
  callfunction'ENQUEUE_EZMARA'
  exporting
    mode_zmara           = 'S'
    mandt                = sy-mandt
    matnr                = wa-matnr
*   X_MATNR              = ' '
*   _SCOPE               = '2'
*   _WAIT                = ' '
*   _COLLECT             = ' '
* EXCEPTIONS
*   FOREIGN_LOCK         = 1
*   SYSTEM_FAILURE       = 2
*   OTHERS               = 3
           .
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
  if  wa-matnr = '000000000000000002'.
  wa-ersda = '20130427'.
  wa-ernam = 'Second Value'.
modify itab from wa.
modify zmara fromtable itab.
  endif.
endloop.

Hi Experts, Problem in uploading BOM in CS01 Transaction using Call Transaction?

$
0
0

Hi,

 

I have write the Code For uploading the Bom in CS01 Transaction using Call Transaction Method.

At the time of upload, 22 items are uploaded from 23 on wards it is not uploaded.

I'm Facing the below error.

 

Field RC29P-IDNRK(23) does not exist in the screen SAPLCSDI 0140

Field RC29P-MENGE(23) does not exist in the screen SAPLCSDI 0140

Field RC29P-MEINS(23) does not exist in the screen SAPLCSDI 0140

Field RC29P-POSTP(23) does not exist in the screen SAPLCSDI 0140

 

Can u Please give me the solution?

 

Thanks in Advance.

 

Regards,

Nagarjuna D


HR_INFOTYPE_OPERATION FM not updating infotype values

$
0
0

Experts,

 

I am using 'HR_INFOTYPE_OPERATION' FM to update the Custom fields, while executing there is no error messages in the return table but the same time it is not modifying the records. Please suggest me how to get the solution.

Infotype i am updating is 40 and subtype 90.

 

CALLFUNCTION'HR_INFOTYPE_OPERATION'

           EXPORTING

             INFTY            = P_ITY

             NUMBER           = WA_PA0040_T-PERNR

             SUBTYPE          = WA_PA0040_T-SUBTY

*           OBJECTID         = WA_PA0040_T-OBJPS

*           LOCKINDICATOR    = WA_PA0040_T-SPRPS

             VALIDITYEND      = WA_PA0040_T-BEGDA

             VALIDITYBEGIN    = WA_PA0040_T-ENDDA

            RECORDNUMBER     = '000'"WA_PA0040_T-SEQNR

             RECORD           = WA_PA0040_T

             OPERATION        = 'MOD'

             TCLAS            = 'A'

             DIALOG_MODE      = '0'

*           NOCOMMIT         = ''

*           VIEW_IDENTIFIER  = '07'

*           SECONDARY_RECORD =

           IMPORTING

             RETURN           = WA_ITYRET

             KEY              = WA_KEY.

Crear ordenes de pedidos de servicio con referencia a contratos.

$
0
0

Buen día a todos,

Estoy haciendo un programa que registra pedidos de servicio mediante la BAPI_PO_CREATE1,

Todo  funciona bien, excepto la referencia de los servicios no catalogados, es decir que no tienen número de servicio y no están registrados en la tabla ASMD. Para los servicios catalogados lo hace perfecto.

Estoy llenando los campos con_pckg y con_line de la poservices con los datos contenidos en la ESLL, que se supone que deben hacer la asociación, pero la bapi no los toma en cuenta y los devuelve vacios.

 

¿Alguien ha tenido alguna experiencia parecida?

Gracias y Saludos,

Chris.

Problem with RFC SAPFTPA

$
0
0

Hi all,

 

I'm trying to use RFC SAPFTPA to transfer files between application server and another FTP server, but I'm not able to do this by RFC SAPFTPA.

 

When I test RFC SAPFTPA connection in program RSFTP002 I get the error "connect to rfc destination failed ", but with RFC SAPFTP  it works.

 

I read lots of posts here in scn, but none of them are helping me.

 

I thought it could be permissions here in the project client, to access FTP server, and they already manage to give those permissions, but still this is not working.

 

Could it be any BASIS problem? These RFC destinations weren't created when I came to this project, so I have created them with report RSFTP005. Am I missing something else?

 

Thanks in advance.

 

 

Regards,

Sónia Gonçalves

Function module Documentation

$
0
0

Hello,

 

I am creating the documentation for custom function module and below are the steps i performed

 

1. Goto->documentation. Gave the modification name as ZTest and selected  Template(with header) radio button.

2. It gave me 4 header templates. &functionality&, &Example&, &Hints& &Further_sources_of_inf&

 

Here are my questions.

 

1. When i change any of the headers  for eg :   change &Example& to &Example1& and activate it, i dont see the header at all.

 

2.  After activating, when i come back to function module and click on 'Function module documentaion' button, the text displayed in word document instead of SAP standard editor to show the help text.

 

3. How to create  links to perticular texts. For example, i would like to list the input parameters of the FM and would like to explain each parameters separately by making a hyperlink to each of those parameters.

 

Appriciate you response.

FM BAPI_MATPHYSINV_COUNT

$
0
0

Hi

 

I am using BAPI BAPI_MATPHYSINV_COUNT to update the count for the physical inventory documents.

To this BAPI I have passed physical inventory documnet number, Fiscal year and item number.

BAPI returns success message but when I ran the MI24 TCODE for that physical inventory number it showing status not updated it is still showing

not yet counted.

Assigning packed variable with different number of decimals

$
0
0

Hi,

 

I have problem while assigning values with different number of decimals.

I am using it in enhancement. For test program its working fine. But in

enhancement, it gives following result.

 

data : lv_b type bapicurext.

data : lv_a type netwr.

 

lv_a = 10609.70.

 

lv_b = lv_a.

 

Now in debugger its showing lv_b = 0.001060970 !!!

Here bapicurext is type P  decimals 9.

 

Regards,

 

Ashish

Smart form MAIN window not printing

$
0
0

Hi All,

 

I have copied the smart form and driver program from 4.7 PM system to ECC for printing RFQ.

every thing is working fine while printing smart form Main window and footer are missing in ECC system they are not displaying remaing windows are displaying,I have compared the both the forms evrything is same.

I have ran this form through ME9A transaction and smart form and driver program are configured in NAST table smart form displaying but some windows are missing


Customize SAP Logon Screen (put a hyperlink)

$
0
0

Hello,


We would like to put a hyperlink to a password reset portal (a webdynpro screen) within the 'Information' section of the Logon Screen (SAPMSYST 0020). We tried changing the General Text 'ZLOGIN_SCREEN_INFO' within SE61 but not able to put the hyperlink (which when clicked takes you to the password reset portal). Is there a way to put the 'hyperlink' within the Information section of the logon screen?


Thanks.

FAGLL03 :Submit with Dynamic selections

$
0
0

Hello Experts,

I have tried to pass 'G/L Account'(in selection) and 'Grant'(Custom selection) for faggl03 from "SUMBIT" but no luck.

I tried using Free selections but it didnt work.

Then after posting i got below useful response like:

We should not use  free selections with  FGLL03 free selections are not actual logical database free selections,

from  Note 971659 - FAGLL03: SUBMIT - transfer of 'custom selections'  . (http://scn.sap.com/thread/3291798).

 


I tried passing "Grant" using the approach mentioned in the SAP Note ,but it didnt work.

Please advise.

Thanks

Prabaharan

Pricing in invoice from delivery

$
0
0

Hello Experts,

 

My requirement is I have a condition type ZFKO at header level in delivery having a value 100.

When I create Invoice from Delivery if there are 2 items item no 10 and item no 20 the above value should split based on the net value.

at the moment ZFKO and 100 is copied to both the items. so How could I split this in invoice at the item level.

 

I have tried looking at VTFL but couldn't find right copy control or don't know which copy control to use.

 

Please advise.

 

Thanks

Job Scheduling

$
0
0

Hi,

 

My requirement is to schedule a job for every 5 mins, simple isn't it ! But it should be triggered exactly after 5 mins of its previous jobs ends time.

 

For exp:

 

Here all the jobs denotes same report and same variant.

 

Job1 executed for 3 mins and ended at 7:05

Job2 should start at 7:10, say Job2 executed for 12 mins and ended at 7:22

Job3 should start at 7:27.

 

 

For this i have created an event in SM62 and Z report to raise the event.

 

In the Z report, selection screen i have given event name and actual Job to be scheduled.

 

This Z report will be scheduled periodically for every 5 mins and it will check the actual job status Released or not.

 

If it is released it will not raise any event, otherwise it will raise an event,

 

To execute it for every 5 mins, i am using FM to get the last ended jobs status and time.

 

To the last ended time i am adding 5 mins and subtracting the current, the time difference will be wait time.

 

Though this is working fine for most of the time, but some times its sub sequent jobs are executed in less than few seconds.

 

Can someone help me on this, let me know if you require code for this.

 

Regards,

Nandha

g_editor->get_text_as_r3table - not working second time around

$
0
0

I have created a table and each rown on the table has a button that will create long text field for notes.

 

I am using g_editor->get_text_as_r3table to retrieve data from the long-text field.  The first time processing, I am able to retrieve the data and save it.  The second time processing (for the next table row), the data is not retrieved.  I have attached a file with the code that I am using.

Viewing all 8332 articles
Browse latest View live


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