Quantcast
Channel: SCN: Message List
Viewing all 9242 articles
Browse latest View live

BAPI_ALM_ORDER_MAINTAIN create external service line without cost element

$
0
0

I have a problem the bapi BAPI_ALM_ORDER_MAINTAIN creation of operation with the control key PM03 (external).

The BAPI:BAPI_ALM_ORDER_MAINTAIN can't carry out cost element in service line automatically,But in frontend can.

 

My Code:

 

*&---------------------------------------------------------------------*

*& Report  ZWTEST

*&

*&---------------------------------------------------------------------*

 

REPORT zwtest.

 

DATA: it_header TYPE TABLE OF bapi_alm_order_headers_i WITH HEADER LINE,

      it_operation TYPE TABLE OF bapi_alm_order_operation WITH HEADER LINE,

      it_methods TYPE TABLE OF bapi_alm_order_method WITH HEADER LINE,

      it_component TYPE TABLE OF bapi_alm_order_component WITH HEADER LINE,

      it_objectlist TYPE TABLE OF bapi_alm_order_objectlist WITH HEADER LINE,

      it_service TYPE TABLE OF bapi_alm_srv_service_line WITH HEADER LINE.

 

DATA: it_return TYPE TABLE OF bapiret2 WITH HEADER LINE,

      it_numbers TYPE TABLE OF bapi_alm_numbers WITH HEADER LINE.

 

"Header

CLEAR: it_header.

it_header-orderid       = '%00000000001'.

it_header-order_type    = 'Z215'.

it_header-short_text    = 'BAPI TEST WORK ORDER'.

it_header-respcctr      = '1138000201'.

it_header-profit_ctr    = '1138000001'.

it_header-mn_wk_ctr     = 'ZPMR1107'.

it_header-func_area      = 'CN010'.

it_header-start_date    = sy-datum.

it_header-finish_date   = sy-datum.

it_header-planplant     = '2088'.

it_header-plangroup     = 'R12'.

it_header-pmacttype     = 'ZH1'.

it_header-funct_loc     = 'QD/2088/B-01-005'.

it_header-equipment     = '000000000010016610'.

it_header-maintplant    = '2088'.

APPEND it_header.

 

 

CLEAR it_methods.

it_methods-refnumber    = 1.

it_methods-objecttype   = 'HEADER'.

it_methods-objectkey    = '%00000000001'.

it_methods-method       = 'CREATE'.

APPEND it_methods.

 

 

"Operation 1

CLEAR it_operation.

it_operation-activity      = '0010'.

*it_operation-sub_activity = '0001'.

it_operation-control_key   = 'PM01'.

it_operation-description   = 'TEST OPERATION'.

it_operation-work_activity = '1.5'.

it_operation-un_work       = 'H'.

it_operation-work_cntr     = 'ZPMR1107'.

it_operation-plant         = '2088'.

APPEND it_operation.

 

 

CLEAR it_methods.

it_methods-refnumber    = 1.

it_methods-objecttype   = 'OPERATION'.

it_methods-objectkey    = '%00000000001'.

it_methods-method       = 'CREATE'.

APPEND it_methods.

 

 

"Operation 2(external)

CLEAR it_operation.

it_operation-activity      = '0020'.

*it_operation-sub_activity  = '0001'.

it_operation-control_key   = 'PM03'.

it_operation-description   = 'TEST EXTERNAL OPERATION '.

it_operation-work_activity = '3'.

it_operation-un_work       = 'H'.

it_operation-work_cntr     = 'ZPMR1107'.

it_operation-plant         = '2088'.

it_operation-matl_group   = 'S01020102'.

it_operation-purch_org    = '1111'.

it_operation-pur_group    = 'A19'.

APPEND it_operation.

 

 

CLEAR it_methods.

it_methods-refnumber    = 2.

it_methods-objecttype   = 'OPERATION'.

it_methods-objectkey    = '%00000000001'.

it_methods-method       = 'CREATE'.

APPEND it_methods.

 

 

"component

CLEAR: it_component.

it_component-item_number          = '0010'.

it_component-activity             = '0020'.

it_component-material             = '000000000080074875'.

it_component-requirement_quantity = '3'.

APPEND it_component.

 

 

CLEAR it_methods.

it_methods-refnumber    = 1.

it_methods-objecttype   = 'COMPONENT'.

it_methods-objectkey    = '%00000000001'.

it_methods-method       = 'CREATE'.

APPEND it_methods.

 

 

"service line

CLEAR: it_service.

it_service-activity = '0020'.

it_service-outline = '0000000001'.

it_service-srv_line = '0000000030'.

it_service-short_text = 'TEST EXTERNAL SERVICE LINE'.

it_service-quantity = '1.000'.

it_service-uom = 'EA'.

it_service-gross_price = '98.00'.

it_service-currency = 'CNY'.

*it_service-matl_group = 'S01020102'.

it_service-net_price = '98.00'.

APPEND it_service.

 

 

CLEAR it_methods.

it_methods-refnumber    = 1.

it_methods-objecttype   = 'SERVICELINE'.

it_methods-objectkey    = '%000000000010020'.

it_methods-method       = 'CREATE'.

APPEND it_methods.

 

 

"objectlist

CLEAR it_objectlist.

it_objectlist-counter = '1'.

it_objectlist-funct_loc = ''.

it_objectlist-equipment = ''.

it_objectlist-notif_no = '000010047130'.

APPEND it_objectlist.

 

 

CLEAR it_methods.

it_methods-refnumber    = 1.

it_methods-objecttype   = 'OBJECTLIST'.

it_methods-objectkey    = '%00000000001'.

it_methods-method       = 'CREATE'.

APPEND it_methods.

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

"Save

CLEAR it_methods.

*it_methods-refnumber = '1'.

*it_methods-objectkey    = '%00000000001'.

it_methods-method = 'SAVE'.

APPEND it_methods.

 

 

CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'

* EXPORTING

*   IV_MMSRV_EXTERNAL_MAINTENACE       =

  TABLES

    it_methods                         = it_methods

    it_header                          = it_header

    it_operation                       = it_operation

    it_component                       = it_component

    it_objectlist                      = it_objectlist

    return                             = it_return

    et_numbers                         = it_numbers

    it_servicelines                    = it_service

         .

 

 

READ TABLE it_return WITH KEY type = 'E'.

IF sy-subrc <> 0.

  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

    EXPORTING

      wait = 'X'.

  WRITE: / 'Good'.

  LOOP AT it_numbers.

    WRITE: / it_numbers-aufnr_in, it_numbers-aufnr_new.

  ENDLOOP.

ELSE.

  CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

  WRITE: / '****:', it_return-message.

ENDIF.

 

 

ULINE.

LOOP AT it_return.

  WRITE: / it_return-type, it_return-message.

ENDLOOP.

QQ截图20141022103209.png

 

Thanks


How to configure Travel Expense to External Payroll ?

$
0
0


Hello,

 

I have seen few blogs and question on configuration for Travel Expense which need to be transfer to external payroll. But I didn't find configuration steps or document and hence I need help from expert.

 

I have configured T&E for India and which is working fine till FI posting (Vendor A/c). Now I am implementing same config for Malaysia where the requirement is bit different. They don't want to use FI posting through T&E due to Tax obligation. They would like to transfer all settled expenses from T&E to upload template which can be pulled in external payroll software.

 

I have 2 options for above solutions i.e.

 

1. Create expense report and take it upto PRFI where you can create posting runs and then you can make custom program to extract data as per the template given. Only issue in this solution is we have to create vendor master and make sure user don't run further Tcode PRRW for FI posting (which can be restricted by security role).

 

2. Use standard functionality PRPY for transferring expenses to external payroll. But I never done this before and hence I would like to know config for the same.

 

Would really appreciate your help / assistance in this regard.

 

- Raj

Re: Problem of generating Crystal Report XI under JBoss 7 with SQL Server 2012

$
0
0

Dear Ludek,

 

After retry and test,

the Program Logic firstly use java Callable Statement to retrieve out the ResultSet, then pass the ResultSet into Crystal Report.

 

So the JDBC and ODBC have not been used in my application.

 

 

After I remark some codes in application and crystal report, the NullPointerException has not raised out again. Actual the Crystal Report Template can generate out the Report, but the correct code in old template cannot full implement in new platform.

* Remind that, the ResultSet I have queried out the result in java code by System.out.println(). So the ResultSet it must have records inside.

 

 

Such that, the Formula in Crystal Report 11.5

------------------------------------------------------------------------

IF {rp001.OwnerIDType} = "P" THEN

"Passport"

ELSE IF {rp001.OwnerIDType} = "F" THEN

"Certificate of incorporation"

ELSE IF {rp001.OwnerIDType} = " " THEN

"HKID"

ELSE IF {rp001.OwnerIDType} = "T" THEN

"Transport Assign Number"

------------------------------------------------------------------------

is okay in old platform, but in new platform  {rp001.OwnerIDType} occur error. That means I change the code to

------------------------------------------------------------------------

"Passport"

------------------------------------------------------------------------

The report can generate out.

 

 

rp001 is the TableAlias

OwnerIDType (String[10]) is a definition of the .ttx file.

 

 

I have tried my best, but the problem cannot be fixed.

 

Very thanks for your assist.

 

 

Bryan

About SPC criterion

$
0
0

Dear Gurus,

 

I have a doubt in the SPC criterion, below is some of standard SPC criterion,

 

010Task list characteristic
020Task list characteristic/material
030Task list charac./inspection lot
060Master inspection characteristic
070Master insp. char./material

 

My questions:

 

1. Difference between Task list characteristics with Master Inspection characteristics? When use 010? when use 070?

 

2. Task List characteristics/Material vs. Task list charac./inspection lot?

 

Thanks.

How to set ”Redundant Storage” for Object Table MARA in O1CL?

$
0
0

We have a Characteristic YYMATNR has been set with reference to MARA-YYMATNR and we would like to have the characteristic value both in MARA and AUSP. We are aware of report RCCLAPRE to populate AUSP once ”Redundant Storage” is made available for MARA.


In transaction O1CL, we would like to set parameter ”Redundant Storage” for Object Table MARA exactly as defined by SAP AG for table KKRAMERK.

MARA.jpg

None of the Class Types associated with KKRAMERK has “Multiple Objects Allowed”:

KKRAMERK2.jpg

KKRAMERK3.jpg


The same parameter ”Redundant Storage” is available again 1 node down, but if we were to set it here for combination Class Type-Table 001-MARA would we need this other setting “Multiple Object Allowed”. But this “Multiple Object Allowed” has serious side-effects that we would like to avoid.

001-MARA.jpg

RCCLUKA2.jpg

Meaning ideally we should have “Redundant Storage” without this “Multiple Object Allowed”. Any ideas?


-------------------

Best Regards

Daniel

What does Consumption posting indicator 'V' stand for?

$
0
0

Hi, everyone:

 

As you know, there are several consumption posting indicators in account assignment category, for example:

    A - Asset

    V - Consumption

    E - Accounting via sales order

    ..................................

I know all the indicators except 'V - Consumption'. What does 'V - Consumption' stand for ? How to use it? Can you give me an example?

 

Thanks in advance!

how to find component in genil model editor

$
0
0

i have an assignment block in which some additional fields are added using aet

by clicking f2 iam able to trace the webui component and the view and the ztable

in which the fields are added but how can i find  the component and component set

in genil model editor in which this extension is done?

regards

luxmi

Re: in preventive maintenance after close maint. order the notification status still in process

$
0
0

Hi

 

Can you post the screen shot of system status of the notification.

 

Regards

Thyagarajan


Production order components cannot output

$
0
0

Hi,

 

While outputting one production order, its components were not displayed.  However, other production orders worked well.  I checked that the header and components were the same and the only difference lies in the material number.  However, the header materials are of the same type.  How could this happen?

 

Regards,

ts

Re: can you please share the new excel plugin/ addin for IBP 4.0?

$
0
0

Hi,

 

I think we are not allowed to upload SAP software and share here.

 

The only site you can download the software is to get the authorization access corrected and you will be able to download that Excel Plugin.

 

Sorry, YS

Re: SAP FI certification

$
0
0

Hello Tej,

 

First of all my hearty congrats to you.

 

I have few clatification oncertification, would you mind to share your email ID?

 

Waiting for your response.

 

Regards

Divya

KPI Modeler tiles won't auto-refresh

$
0
0

Hi Experts,

 

After getting our KPI Modeler working, I've been able to create Tiles and have them displayed on my Fiori Launchpad. This is great, but unfortunately I haven't been able to get the Tiles to automatically refresh when the data in the back-end (HANA tables) changes. I've created the Tiles under the Manage Visualizations area of the KPI Modeler and set the 'Value changes every:' Parameter accordingly, but after updating the data and waiting the appropriate time (5 seconds), the tile does not update.

 

Has anyone had any experience with this and can offer any insight as to what the problem may be?

 

Thanks in advance,

 

Cal

Re: SAP ITS on Motorola MC55A0 Screen Problems

$
0
0

Hi Oisin,

 

Thanks for your support. Yes, i am using mobile.css file(default SAP is using this file i think), finding hard to get the file Mobile.css from Tcode SE80 under MIME repository. Please assist me the way where can i find the file mobile.css under which path, so that i can copy to my ITS services. Many Thanks!

 

 

Regards,

Vinoth

Re: How to Join Table Types?

$
0
0

Create a new structure by including both types.

 

Types: begin of tab,

 

Include type1,Include type 2,

 

Endof tab.

 

Now createcreate an internal table of type above.

 

Loop at itab1.

 

Readtable lt_tab. "Use appropriate join condition here and then populate the newly created internal table

Re: NW BPM: Error while testing

$
0
0

Hi Amit,

 

Can you please let us know if you could resolve the issue with message posting to BPM and how?

 

Thanks,

Arijit


Is there a standard SAP tcode for viewing of logs for any create, change, or delete transactions in Master Data Management?

$
0
0

Hi,

 

I'm wondering if there are any SAP standard tcode for me to use as monitoring the logs every time I create, change, and delete data in SAP system.  I need to track the logs of the system for monitoring practice in Master Data Management.

 

If there is none. Do you have any suggested alternative that I can use for me to do the monitoring in the system for the logs.

 

 

Thank you very much.

Re: ICP

$
0
0

For that you can do below:

"IF IT HAS ONE LINE THEN:

READ CUSTCODE INDEX 1.

IF SY-SUBRC IS INITIAL.

WRITE:/ 'Customer Code :', CUSTCODE-LOW.

ENDIF.

 

"If multiple lines

Loop at CUSTCODE.

WRITE:/ 'Customer Code :', CUSTCODE-LOW.

ENDLOOP..


Thanks,

Naveen

Re: DELETE BUSINESS PARTNER FROM TARGET GROUP PERMANENTLY.

$
0
0

Hi Deepak,

 

Just try to pause / cancel  the job and see if the TG is getting updated or not the next day. Still if you find the TG getting updated (even after canceling the job) then we can conclude that the job truly does not belong to the TG updation.

 

Why can't you try once.

 

 

Rgds

Hari

Re: Exception aggrageation Error

$
0
0

Hi,

 

create the new slection - count with abnormal.-> select the object and resctirct the only abnormal.

again create the new formula -> put the new seleciton kf in side the new formula.

 

hit the aggregation tab -> select the summation/total -> reference char -> EMP ID -> save it and run the query in RSRT or BEx analyzer.

 

 

Thanks,

Phani.

Re: IDM 7.2 SP9 updating business role does not trigger provisioning

$
0
0

Hello Ranjit

What is the status of this privilege linked to user?

Run below query n share the result.

Select mcothermskeyvalue, mcexecstate, mcorphan, mcassigneddirect from idmv_link_ext_active where mcthismskeyvalue = '<usermskeyvalue>' and mcothermskeyvalue = '<privilegemskeyvalue>' ;

 

Regards

Pradeep

Viewing all 9242 articles
Browse latest View live


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