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

BAPI_SALESORDER_CREATEFROMDAT2

$
0
0

Hi all,

 

I create a sales order through the BAPI_SALESORDER_CREATEFROMDAT2 and I want to determine commitment item externally. I put my commitment item in the field  order_items_in-cmmt_item, but it doesn`t transfer to the created sales order item. There are no any FM-derivation rules.

 

I debug the process through FM_***_INPUT_PUT_SD where  i_vbapkom-fipos is succesfully moved to  gf_fmobjects-fipos, and then through  FM_***_INPUT_GET_SD where gf_fmobjects-fipos is moved to c_cobl-fipos (and  gf_fmobjects cleared then)


 

But in the beginning of the FORM  cobl_fuellen the strusture cobl is cleared and so CI is not transfered.

 

 

Please, help me, where is the problem?

 

Best regards,

Roman


Facing Problem in Importing USR02 using RFC_Read_Table

$
0
0

I am trying to import USR02 table of child system  from the parent system.But getting Error as Table Not available in my main program.Kindly help.

Code :

 

data :

 

 

lv_table type DD02L-TABNAME,

lv_rfcdest type  RFCDEST,

lt_options type STANDARD TABLE of rfc_db_opt,

lt_fields type STANDARD TABLE of rfc_db_fld,

lt_data type STANDARD TABLE of tab512.

 

 

lv_rfcdest = 'SR4CLNT800'.

 

 

WRITE : /.

 

 

lv_table  = 'USR02'.

 

 

CALL FUNCTION 'RFC_READ_TABLE'

  DESTINATION lv_rfcdest

  IMPORTING

    QUERY_TABLE = lv_table

    ex_usr02    = lv_table

  TABLES

    OPTIONS     = lt_options

    FIELDS      = lt_fields

    DATA        = lt_data.

 

 

IF SY-SUBRC <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

exit.

Printing in VF02/03 ist disable

$
0
0

Hi,

 

i would print direct in VF02/03, but the menu Shows it as disable:

 

Unbenannt.JPG

 

Is there a way to make "AUSGABE" and "BILDSCHIRM" able to use?

 

Thanks.

 

regards, Dieter

CSapEditorCtrl::GetObject: Object 45 does not exist

$
0
0

Hi,

 

When i trying to start the PC editor for Office, i encountered the following error: CSapEditorCtrl::GetObject: Object 45 does not exist

 

Anybody can help?

 

Regards

Issue with Field symbols

$
0
0

HI Experts,

 

I face an issue while using field symbols, kindly help me out. Here <lts_commercial> and <lfs_commercial> is of both same data type, but still I get the error message that the field "Product_guid" is not an component.

 

field-symbols:

               <lts_commercial> type ANY TABLE,

                <lfs_commercial> type any,

 

 

CREATE DATA ref_itab type STANDARD TABLE OF (lc_commercial)

             WITH NON-UNIQUE DEFAULT KEY.

 

       assign ref_itab->* to <lts_commercial>.

 

       create data ref_ls like line of <lts_commercial>.

       assign ref_ls->* to <lfs_commercial>.

 

       ASSIGN <ls_set>-data->* TO <lts_commercial>.

 

       READ TABLE <lts_commercial> into <lfs_commercial> with KEY product_guid = lt_comp_det-object_guid.

 

ERROR MESSAGE:

 

       The specified type has no structure and therefore no component called

       "PRODUCT_GUID". component called "PRODUCT_GUID".

How to pass Multiple Tax Rate to BAPI_ACC_DOCUMENT_POST

$
0
0

Hello,

 

I'm using FM CALCULATE_TAX_FROM_GROSSAMOUNT to fetch tax rates based on tax jurisdiciton code , currency and amount.

After that collecting all relevant data in internal table and passing it to accounttax table in BAPI.

 

If we have single tax rate then BAPI_ACC_DOCUMENT_POST is successfully posting the docuemnt.

 

For a particular company code and tax code we have multiple tax rates. How can we pass multiple tax rates to bapi.

 

 

The error "Balance in transaction currency"  i'm getting

 

Thanks

-Always Learner

MAIL Attachment have less data Compairing to actual DATA

$
0
0

Hi Experts,

 

My requirement is to send mail with attached excel file , file row is greater than 255 characters , so , i convert internal table to XSTRING AND then XSTRING to BINARY, now the mail is sending correctly but problem is the Excel  has less no. of rows comparing to rows in internal table, the binary data is also having right number of row line.

 

call function 'SCMS_STRING_TO_XSTRING'

          exporting

               text   = PV_STRING

          importing

               buffer = x_string.

 

     call function 'SCMS_XSTRING_TO_BINARY'

          exporting

               buffer          = x_string

               append_to_table = 'X'  "Do not clear/refresh table

          tables

               binary_tab      = binary_att.

 

GO_DOCUMENT->ADD_ATTACHMENT(

         I_ATTACHMENT_TYPE      'XLS'

         I_ATTACHMENT_SUBJECT   LV_TITLE

         I_ATTACHMENT_SIZE      LV_SIZE

*        I_ATT_CONTENT_TEXT     =  IT_BODY

         i_att_content_hex      binary_att ).


Please Suggest .


Thanks & Regards


Sushil Kumar Shrivastava


Create Table Type Dynamically

$
0
0

Hi All,

 

I need to create Table Type dynamically based on existing structure..

 

For that i followed the link: https://scn.sap.com/thread/1725739

 

 

but in this , there is no input parameter for table type name.. I am sending structure name.

 

sample code given below:

TRY.

DATA: r_type_table  TYPE REF TO cl_abap_tabledescr,

       r_type_struct TYPE REF TO cl_abap_structdescr,

       ls_struc_type TYPE REF TO CL_ABAP_DATADESCR,

       ls_line_type TYPE REF TO CL_ABAP_TYPEDESCR,

       LS_P_RESULT TYPE REF TO CL_ABAP_TABLEDESCR.

 

       ls_line_type = cl_abap_structdescr=>DESCRIBE_BY_NAME( 'zst_cr_salesrep' ).

       r_type_struct ?= ls_line_type.

       r_type_table = cl_abap_tabledescr=>create( r_type_struct ).

 

     CATCH cx_sy_table_creation .

ENDTRY.


Also i am not getting any error.


Kindly advice..


Thanks

Vivek


COMMIT CL_BCS e-mail in BACKGROUND TASK

$
0
0

Hello,

 

I am building custom wrapper class to send e-mails. Inside it uses CL_BCS.

Problem is, that there is need to COMMIT after cl_bcs->send( ). But direct COMMIT is not possible in most user exits and BADIs.

 

Usually this is solved by RFC module which contains whole sending part of code and called IN BACKGROUND TASK. But now I want to create simple and reusable way to do this.

 

I was thinking about simple RFC module with input of TYPE REF TO cl_bcs. Inside just call ->send, commit and return result. But RFC module can not have TYPE REF TO parameter.

 

My question:

Is there any elegant method how to commit CL_BCS SEND to not interfere with user exits/BADI update task? Any tips, ideas..? :-)

If we change partner function in delivery , we need to trigger message type for shipment for that delivery

$
0
0

Hi Gurus,

 

we have a requirement in our project when we change partner function in delivery then we need to trigger message type for shipment associated to that particular delivery.

 

I tried to use badi LE_SHP_DELIERY_PROC. succeeded in finding changes but I need to trigger message type in shipment.

 

if any of you known about such kind of requirements please reply. 

How to consume .Net Web service in sap

$
0
0

Dear All,

 

Anyone have any idea how to consume .Net web service in sap, If so then please provide me some hints or the path so that I can successfully consume .Net Web Service.

 

Waiting for positive response.

 

 

 

Regards,

Muhammad Taha

Problem with encoding of mail attachment

$
0
0

Hi!

 

I have a "simple" problem! I create some data inside an ABAP report and want to send this via email as a text attachment.The mail and the attachment are created and sent, but the problem is the wrong encoding. The attached text document has UTF-8 encoding. I need LATIN1 encoding ... i could not figure out, how to change the encoding of the attachment!? Does anybody have an idea?

 

 

try.

     document = cl_document_bcs=>create_from_text(

     i_text         = text

     i_documenttype = 'RAW'

     i_subject      = 'Order_Data'

 

    ).

   catch cx_document_bcs .

   endtry.


BR, EF

How to update top of page in grid1 based on other grid1 selected row?

$
0
0

Hi everyone,

 

 

Can any one know about how to pass or update values in top of page in grid1 based on selected row value in grid2 dynamically.

 

Suppose in grid1 top of page i have   Display Currency = USD which is local.

Now I have other currencies in other grid2 that is popup. the values may be

 

USD,

'SGD,

EUR.

etc..

 

that values are dynamic which are in grid2.

 

 

So how to update Display currency value based on other grid2 selection.

 

I am using OOPS events here...Can anyone plzzz.

 

 

 

 

 

Thanks,

 

Karunakar Reddy.

Screen Enhancement in KS01/KS02/KS03

$
0
0

Hi Experts,

 

I have a requirement to add WERKS field (from CSKS table)  to KS01 tcode.

This field should be placed in Basic data tab.

report: SAPLKMA1

screen : 300

 

I have seen different threads but all saying adding additional field but in my case, WERKS already exist in table CSKS but not present in KS01 tcode.

Hope you understand my query.

Please help me how to add that field in KS01 tcode and that field should update in database as well.

 

Appreciate you effort. Thanks in advance.

 

Best regards,

Narasimha,

Please help me to change/delete my posted discussion....


BAPI to release order from IW31

$
0
0

Hi All,

 

We are creating service order from IW31. When the order is created , a workflow is triggered. I need to automatically release the order after all my workflow approvals are complete.

 

Is there any BAPI to release the order for this ?

 

 

Thanks

Meenakshi

Image BLOB from External Sybase DB to Xstring

$
0
0

Hi ,

 

We are trying to retrieve images from external SYBASE database using ADBC. Images have size of more than 1mb in some of the records.

 

We have written a program to fetch the field from the sql database as xstring. Values getting stored in this xstring field is by default 32767 bytes ,remaining characters are stored as '00'

So the images are coming partially when converted back to binary and then to image.

 

How to fetch the complete field to  xstring so that complete images are retrieved and stored in the database.

 

We are using the following classes to retieve data from SQL.

CL_SQL_CONNECTION  and CL_SQL_RESULT_SET

 

Please tell how to access the complete image into a field .

 

 

Thanks and Regards,

 

Daniel C

Through the error message when the costing done from sales order Tcode VA02

$
0
0

Hello,

 

 

costing can be done thorough the sales order in the  T-code va01/va02 .

 

Now I want to through the error message when the costing done from the T-code va01 and VA02.

 

 

Is there any exit / customer exit / badi.   I want restrict costing.

 

what will be GUI Status and function code ?? Please find the below screen shot for reference.

 

 

 

 

How to create entry in TTXID Table

$
0
0

Hello Experts,


 

Problem with creating a new entry in TTXID Table.

 

I was unable to create entry through SE75.. Because it is raising an error message 'No authorization to change for text objects and text id'...Is there any other way to create.. Kindly give me the solution..

 

Thanks.

 

Regards,

Saran.

Enhancement to force generation of new Version for Purch. Order or Purch Requisitionc

$
0
0

Dear Gurus,

 

Anyone who had experienced already of forcing the generation of new version upon changing of purchase order and purchase requisition?

i already checked and tried these objects below but still failed to achieve my goal.

 

LMEDCMMF01

IF_REVISION_MANAGER_DCM

IF_DCM_ADAPTER

ME_PROCESS_PO_CUST

 

 

thank you and regards,

Viewing all 8332 articles
Browse latest View live


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