Quantcast
Channel: SCN : All Content - All Communities
Viewing all 3599 articles
Browse latest View live

How to create conditions for a sales deal (VB22) automatically (RV_CONDITION_COPY)

$
0
0

Hi All,

 

I want to export my prices with PR00, PR10, V002 (or V041) conditions from excel.

I used RV_CONDITION_COPY bapi to create condition records in pricing tables and also I want to view these prices in given sales deal through VB22 transaction code.

 

 

Here is my sample data:

MaterialCondition TypePayment TypeAmount
20210254PR001/1011
20210254PR001/510
20210254PR00PTOP12
20210254PR00VPNK13
20210254PR1011
20210254V0021/1011
20210254V0021/50,60
20210254V002PTOP3,1
20210254V002VPNK1

 

 

 

I exported these records and I was able to create them in pricing tables as below:

 

1.PNG

 

2.PNG

 

3.PNG

 

When I check my conditions, here are my records with the sales deal, 176.

 

4.PNG

 

And KONP....

5.PNG

 

Finally, KONA.

6.PNG

 

Everthing seems correct until now. But, when I check my sales deal from VB22, I am not able to view my condition records:

 

7.PNG

 

Here is my code below:

 

 

IF gt_k-kschl EQ 'PR00'.

           CONCATENATE gv_vtweg

                       gs_b-auart

                       lv_pltyp

                       gs_b-augru

                       gt_k-zterm

                       gt_k-waers

                       gt_k-matnr

                       INTO gv_vakey

                       RESPECTING BLANKS.

           lv_tabnr = '650'.

         ELSEIF gt_k-kschl EQ 'PR10'.

           lv_tabnr = '653'.

           CONCATENATE gv_vtweg

                       gs_b-auart

                       lv_pltyp

                       gs_b-augru

                       gt_k-waers

                       gt_k-matnr

                       INTO gv_vakey

                       RESPECTING BLANKS.

 

         ELSEIF gt_k-kschl EQ 'V002' OR gt_k-kschl EQ 'V041'.

           lv_tabnr = '882'.

           CONCATENATE gs_b-auart

                       lv_pltyp

                       gs_b-augru

                       gt_k-zterm

                       gt_k-waers

                       gt_k-matnr

                       INTO gv_vakey

                       RESPECTING BLANKS.

         ENDIF.

 

         gs_cr-kappl = 'V '.

         gs_cr-kschl = gt_k-kschl.

         gs_cr-mandt = sy-mandt.

         gs_cr-kbetr = gt_k-kbetr.

         gv_datab = gs_b-datab.

         gv_datbi = gs_b-datbi.

 

 

         CALL FUNCTION 'SD_CONDITION_KOMG_FILL'

           EXPORTING

             p_kotabnr = lv_tabnr

             p_kvewe   = 'A'

             p_vakey   = gv_vakey

           IMPORTING

             p_komg    = gs_key_fields.

 

         CLEAR : gs_komk,

                 gs_komp,

                 gs_komv_idoc.

 

         REFRESH : gt_komv_idoc.

 

*- Fill KOMK

         MOVE-CORRESPONDING gs_key_fields TO gs_komk.

         gs_komk-mandt = sy-mandt.

         gs_komk-zknuma_ag = gs_b-knuma_ag.

 

*- Fill KOMP

         MOVE-CORRESPONDING gs_key_fields TO gs_komp.

         gs_komp-kposn = '000001'.

         gs_komp-knuma_ag = gs_b-knuma_ag.

 

*- Fill KOMV_IDOC

         gs_komv_idoc-kznep    = abap_true.

         gs_komv_idoc-knuma_ag = gs_b-knuma_ag.

 

         APPEND gs_komv_idoc TO gt_komv_idoc.

 

         APPEND gs_cr TO gt_cr.

 

         CALL FUNCTION 'RV_CONDITION_RESET'.

 

         CALL FUNCTION 'RV_CONDITION_COPY'

           EXPORTING

             application              = 'V '

             condition_table          = lv_tabnr

             condition_type           = gt_k-kschl

             date_from                = gv_datab

             date_to                  = gv_datbi

             enqueue                  = 'X'

             i_komk                   = gs_komk

             i_komp                   = gs_komp

             key_fields               = gs_key_fields

             maintain_mode            = 'A'

             no_authority_check       = 'X'

*           keep_old_records         = 'X'

             used_by_idoc             = 'X'

             overlap_confirmed        = 'X'

           TABLES

             copy_records             = gt_cr

             copy_recs_idoc           = gt_komv_idoc

           EXCEPTIONS

             enqueue_on_record        = 01

             invalid_application      = 02

             invalid_condition_number = 03

             invalid_condition_type   = 04

             no_authority_ekorg       = 05

             no_authority_kschl       = 06

             no_authority_vkorg       = 07

             no_selection             = 08

             table_not_valid          = 09.

 

 

 

         IF sy-subrc EQ 0.

           REFRESH gt_knumh.

           CALL FUNCTION 'RV_CONDITION_SAVE'

             TABLES

               knumh_map = gt_knumh.

           IF gt_knumh IS NOT INITIAL.

             lv_status = 'X'.

             COMMIT WORK AND WAIT.

           ELSE.

             CALL FUNCTION 'RV_CONDITION_RESET'.

           ENDIF.

         ELSE.

           CLEAR lv_status.

           CALL FUNCTION 'RV_CONDITION_RESET'.

         ENDIF.

 

 

What I am missing? How can I create condition records inside a sales deal and view them from VB22?

 

 

Thanks in advance!

 

Mina


Consumption of oData services from non-ABAP systems in Fiori applications which are deployed in ABAP Gateway

$
0
0

As of current release of Gateway (7.40 and 7.50),  Gateway doesn't support registering service proxies for oData services developed other than ABAP stack.  But we may need to access the oData services which are developed in non-ABAP systems or any other third party systems.  In one of my insurance project which has a complex landscape comprising ABAP based systems, Java and other third-party systems and also integration with SucessFactors running in cloud.   I am detailing what is used in standard SAP shipment already with two options for the non-ABAP use cases.

 

  1. Rest Tunneling
  2. Direct expose of oData service

Rest Tunneling is nothing but a forwarder which receives request in GW Hub and forwards the request to non-ABAP system through ABAP REST Client. This approach is used in SAP JAM integration in Fiori Launchpad.

 

SAP Insurance and Quotation Management (FS-QUO in short) is a Java based system and it is exposed through Web dispatcher directly .. SAPUI5 applications makes direct oData service call to FS-QUO as shown below.

 

 

blog.png

  

Departments - Setup window

$
0
0

I would like to know how can I  add to the window of  Departments-Setup 2 more columns in SAP HANA

how to remplace a missing composant double_fl in a structure

$
0
0

Hello friends,

 

Can anyone tell me please how to replace double_fl in this code line for an abap version 4.6C :

 

code from version 6 :   

 

DELETE lt_nodes WHERE double_fl = 'X'.

 

because the composant "double_fl" is missing in the structure "hier_iface" in 4.6C but it existe in version 6 .

 

 

thanks in advance .

SP for Open GRPO not closed PO should not add in the system

$
0
0


Dear Experts,

 

 

If Open GRNs are not closed by A/P Invoices before 5th of the next month then No POs will be generated or (blocked by the sap )for that supplier.

It will be valid for all vendors.

 

Kindly provide me SP for these condition.

 

Regards

Amol

Get Next ticket functionality

$
0
0

Hi,

 

What is the functionality of 'Get next ticket button' in the service ticket. After pressing the button an already ticket opened. I am not able to understand what is the link between the current and the next ticket?

Batch Number in GR

$
0
0

Hi Gurus,

 

While creating GR, I see batch number "1000" which populates automatically in batch tab.

 

When I check drop down and select my batch number which was created using T.code MSC1N, still it automatically fetches 1000 but not the one which I have selected/created.

 

As a test I have used different materials and maintained batch numbers but still have the same issue.

 

What could be the reason?

how to add/join 0material infoobject to infocube(0sd_c03)

$
0
0

Hi experts,

 

I searched on scn posts regarding my requirement but din get anything related so I am posting it.

I have to add 0material info object to info cube(0sd_co3),some body  please help me how can I do it i am doing it first time ,please elaborate the steps .

I have all my field in 0sd_c03 cube.


1) PAYER(KUNRG) 2) INVOICED NUMBER/BILLING DOCUMENT NO(VBELN). 3)  REGION DELIVERY PLANT(WKREG) 4)NET VALUE(NETWR)


NOW  I just need to add  these fields

1)MATERIAL GROUP 2)MATERIAL TYPE 3)MATERIAL NUMBER. all are there in (0MATERIAL) INFOOBJECTS.


please guide me with steps i tried my best for it but din get anything ,please help me.



Thanks and regards,

jyotsna singh



Error in upgrade sybase from 15.7 to 16 sp01

$
0
0

Hi all,

 

I am trying upgrade Sybase 15.7 to 16 sp01 on windows platform by following the note 1982469.

 

Below error is coming

 

Kindly help me...

 

sybase upgrade error.PNG

Moving Average Price not Calculating

$
0
0

Hi,

 

We have Item Details Valuation method is FIFO.

 

We run Inventory Valuation Simulation Report with Moving Average.

 

But System is not Averaging Cost.

 

Pl. Help.

 

With Regards,

 

Devendra

Cost Center appearing in non cost-element GL while simulating MIRO?

$
0
0

Hi,

When I am simulating a invoice in MIRO system is picking cost center to non cost element GL. The line item which system automatically creates is of whith-holding tax item which is an expense GL account with no cost element. Still on simulating its showing error mgs asking to create that GL as cost element and picking cost center. I do not require any cost center to this GL account.

 

Please help me out in this scenario...

 

Regards,

Alok

 

Error Msg: Create account 403043 for 13.05.2016 as a cost element in controlling area 1000

Message no. KI280

Open ODS View datasource based and selection filters

$
0
0

Hi Gurus,

 

here is my question: are the Open ODS View datasource based able to use selection fields?

 

Here is my scenario: a datasource supports i.e. filter on a fileld MATNR. The Open ODS View maps this field with 0MATERIAL. During the data access (via BEx or "Display data" menu) a filter is provided on 0MATERIAL. I traced the execution and this field is ignored, so only FULL extraction happens. Is there a way to tell the Open ODS View to pass that filter?

 

Thank you for your help.

 

M

Reject Purchase Requisition (Funds Management)

$
0
0

Hi everyone,

 

We are using FM module to check availability control on some process.

I created a purchase requisition and the material cost is 100 USD. Then the availability budget is reducing  100 USD.

It is OK, no problem.

 

But, when the purchase requisition rejected, FM budget is not affecting from this rejection and remain same.

So, there is no change in FM side.

 

However I think My budget should revert back, if any rejection of purchase requisition occurs.

 

PR  --->                     100 USD               Funds Center A ---> 100 USD

Rejection of PR          100 USD               Funds Center A ----> 100 USD (still same)

 

 

After rejection of PR  I would like to see  the comsumable budget on Funds Center   "-100  USD", so my availability amount revert back.

 

How can I do this?

 

Thanks for helping

 

Regards,

 

resul simsek

Change topic space for document

$
0
0

Hi,

I have created a document and advised by moderators to address it to correct topic space. Please advise how can I change the topic space for my document now ?

 

 

Regards,

Rachit

Multi Mapping with Dynamic FileName - how to remove the target field which is used for variable substitution in SFTP Adapter

$
0
0

HI All.

 

 

i hope we unable to achieve dynamic configuration in multi mapping, so we followed below link.

 

so now we're trying to achieve using variable substitution. my scenario is JDBC to SFTP, but below mentioned link pointing to FCC.

 

Multi Mapping with Dynamic FileName and Dynamic Folder using Variable Substitution

 

 

i've done variable substitution and it's working file,  can you please suggest how can i remove the field  which i used for variable substitution in receiver SFTP adapter level?

 

Regards

Ramesh


Unit of measurement decimals

$
0
0

Hi Experts,

 

My Client wants to  book SKF qty with 5 decimals but system not allowing more than3 decimals,                                                                          

 

I have given decimal place:5 in t code:CUN1 even though getting same error msg, please help me in this regard,

 

Thanks in advance,

 

Thanks & Regards,

 

Ram

close command control in sap information message pop up

$
0
0

Hi everyone, well i am using a information message in program by message statement type  'I' i just want close button control.When ever user clicks close button i need to write some program can anybody suugest me.....

Movement type 103 is not planned for this operation

$
0
0

Hi Guys,

 

I am getting the error "Movement type 103 is not planned for this operation" while trying to inward the material.

checked in OMJJ for the movement type all the necessary settings are there.

 

Please provide me the solution for this issue. Sorry i tried to google the same error but no solution found.

 

Regards

Velu

System should not allow already used serial numbers against material in production order

$
0
0

Hi  Experts,

 

I have issue with serial numbers usage in production order.

 

Even serial number is unique with material code, system accepting already used serial numbers during production order creation if the serial number status is available.

 

Pls find the below screen shots for your reference along with configuration .

 

So our requirement is , as serial number is unique with material code, it should not allow to reuse against the same material.

 

 

 

 

 

 

Now I am creating production order for the same material code

 

during serial number assignment , system will assign new serial numbers by clicking on create serial numbers automatically

 

but if I change the serail number 1867 with already used serail number 1866 , it is accepting

 

 

IQ09

 

Now we can see the serial number history : it is assigned against two orders

 

 

 

So our requirement is , as serial number is unique with material code, it should not allow to reuse against the same material

 

OIS2

 

 

 

Regards

Satya

How to create Funnel Chart using Dashboard Excelsius

$
0
0

Could anyone please tell me if there is component to create Funnel Chart?

 

Something like below...

sales-funnel-02.jpg

 

f

Viewing all 3599 articles
Browse latest View live


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